diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2022-01-09 14:53:17 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2022-01-09 14:53:17 +0800 |
commit | 690d7a156a942c7e8af89a6e8fa6c63cf74e304a (patch) | |
tree | 9391c482c8e7455043d67664023758202dcb298b /tools | |
parent | c40fbd8313580e0469aabddcc5467e7c3e8c5fd0 (diff) |
update
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/init/sync.sh | 5 |
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 |
4 | sync() { | 4 | sync() { |
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 | } |
8 | sync $SETTING_DIR | 9 | sync $SETTING_DIR |
9 | sync ~/blog | 10 | sync ~/blog |