diff options
author | typebrook <typebrook@gmail.com> | 2019-04-18 11:20:05 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2019-04-18 11:20:05 +0800 |
commit | b9767d94390bf96165d65a829d2aab37bda37258 (patch) | |
tree | 5a43b9e9273734abae601dafa996dee2bb58e5da /script | |
parent | 8b2aa66c644e7bf1e2bc129b84da4603f52cae1f (diff) |
update
Diffstat (limited to 'script')
-rw-r--r-- | script/sync-vimwiki.cron | 1 | ||||
-rw-r--r-- | script/sync.sh | 22 |
2 files changed, 0 insertions, 23 deletions
diff --git a/script/sync-vimwiki.cron b/script/sync-vimwiki.cron deleted file mode 100644 index c99487f..0000000 --- a/script/sync-vimwiki.cron +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | 0 * * * * cd ~/vimwiki && git add * && git commit -am "update" && git push | ||
diff --git a/script/sync.sh b/script/sync.sh deleted file mode 100644 index a555869..0000000 --- a/script/sync.sh +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | check_upstream() { | ||
2 | |||
3 | head='dev' | ||
4 | if [ $# -eq 2 ] | ||
5 | then | ||
6 | head=$2 | ||
7 | fi | ||
8 | |||
9 | cd ~/$1 | ||
10 | git fetch origin && \ | ||
11 | git rev-list $head | grep $(git rev-parse origin/master) > /dev/null | ||
12 | |||
13 | if [ $? -ne 0 ] | ||
14 | then | ||
15 | echo "New commit at" $1 | ||
16 | fi | ||
17 | } | ||
18 | |||
19 | cd ~/git/settings && git pull --quiet & | ||
20 | cd ~/vimwiki && git pull --quiet & | ||
21 | check_upstream git/tig & | ||
22 | check_upstream .vim_runtime & | ||