From e7598928bac80354cd2dcaca25f7849cb1e6b21c Mon Sep 17 00:00:00 2001 From: typebrook Date: Thu, 5 Mar 2020 21:06:33 +0800 Subject: update --- tools/sync.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/sync.sh b/tools/sync.sh index 1c33138..00ed4b8 100755 --- a/tools/sync.sh +++ b/tools/sync.sh @@ -1,6 +1,11 @@ #!/bin/bash +# my repo cd $SETTING_DIR && git pull --quiet || echo in `pwd` > /dev/tty & -cd ~/vimwiki && git pull --quiet || echo in `pwd` > /dev/tty & +if [ -d ~/vimwiki ]; then + cd ~/vimwiki && git pull --quiet || echo in `pwd` > /dev/tty & +fi + +# others repo check_upstream ~/git/tig || echo in `pwd` > /dev/tty & check_upstream ~/.vim_runtime || echo in `pwd` > /dev/tty & -- cgit v1.2.3-70-g09d2