aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/init
diff options
context:
space:
mode:
Diffstat (limited to 'tools/init')
-rwxr-xr-xtools/init/sync.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/init/sync.sh b/tools/init/sync.sh
index d582514..c515841 100755
--- a/tools/init/sync.sh
+++ b/tools/init/sync.sh
@@ -2,8 +2,9 @@
2 2
3# my repo 3# my repo
4sync() { 4sync() {
5 [ ! -d $1 ] && return 5 [[ -d $1 || -z $(git remote -v) ]] && return
6 cd $1 && git pull --quiet || echo in `pwd` >/dev/tty & 6 cd $1
7 git pull --quiet || echo in `pwd` >/dev/tty &
7} 8}
8sync $SETTING_DIR 9sync $SETTING_DIR
9sync ~/blog 10sync ~/blog