From 8b2aa66c644e7bf1e2bc129b84da4603f52cae1f Mon Sep 17 00:00:00 2001 From: typebrook Date: Thu, 18 Apr 2019 10:48:30 +0800 Subject: update --- script/sync.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'script') 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 @@ +check_upstream() { + + head='dev' + if [ $# -eq 2 ] + then + head=$2 + fi + + cd ~/$1 + git fetch origin && \ + git rev-list $head | grep $(git rev-parse origin/master) > /dev/null + + if [ $? -ne 0 ] + then + echo "New commit at" $1 + fi +} + cd ~/git/settings && git pull --quiet & cd ~/vimwiki && git pull --quiet & +check_upstream git/tig & +check_upstream .vim_runtime & -- cgit v1.2.3-70-g09d2