summaryrefslogtreecommitdiffhomepage
path: root/script/sync.sh
diff options
context:
space:
mode:
Diffstat (limited to 'script/sync.sh')
-rw-r--r--script/sync.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/script/sync.sh b/script/sync.sh
index 64f6a65..a555869 100644
--- a/script/sync.sh
+++ b/script/sync.sh
@@ -1,2 +1,22 @@
1check_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
1cd ~/git/settings && git pull --quiet & 19cd ~/git/settings && git pull --quiet &
2cd ~/vimwiki && git pull --quiet & 20cd ~/vimwiki && git pull --quiet &
21check_upstream git/tig &
22check_upstream .vim_runtime &