From cd49acb301200aff338b8bd05018ef8af19f552a Mon Sep 17 00:00:00 2001 From: typebrook Date: Mon, 14 Oct 2019 17:48:48 +0800 Subject: update --- scripts/check_upstream.sh | 2 +- scripts/sync.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/check_upstream.sh b/scripts/check_upstream.sh index 3ebf3dd..84adb9e 100755 --- a/scripts/check_upstream.sh +++ b/scripts/check_upstream.sh @@ -14,7 +14,7 @@ check_upstream() { head=$2 fi - cd ~/$1 + cd $1 git fetch origin && \ git rev-list $head | grep $(git rev-parse origin/master) > /dev/null diff --git a/scripts/sync.sh b/scripts/sync.sh index 26abc22..665acba 100755 --- a/scripts/sync.sh +++ b/scripts/sync.sh @@ -5,5 +5,5 @@ source $DIR/check_upstream.sh cd ~/git/settings && git pull --quiet & cd ~/vimwiki && git pull --quiet & -check_upstream git/tig & -check_upstream .vim_runtime & +check_upstream ~/git/tig & +check_upstream ~/.vim_runtime & -- cgit v1.2.3-70-g09d2