aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2022-01-09 14:53:17 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2022-01-09 14:53:17 +0800
commit690d7a156a942c7e8af89a6e8fa6c63cf74e304a (patch)
tree9391c482c8e7455043d67664023758202dcb298b /tools
parentc40fbd8313580e0469aabddcc5467e7c3e8c5fd0 (diff)
update
Diffstat (limited to 'tools')
-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