diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2022-01-09 14:57:43 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2022-01-09 14:57:43 +0800 |
commit | c1ac0fa85eb1348661f320ce6c2e7d706feb4765 (patch) | |
tree | da509b35d415e31d12ec626305a9584515730081 /tools | |
parent | 690d7a156a942c7e8af89a6e8fa6c63cf74e304a (diff) |
update
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/init/sync.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/init/sync.sh b/tools/init/sync.sh index c515841..04af87e 100755 --- a/tools/init/sync.sh +++ b/tools/init/sync.sh | |||
@@ -2,8 +2,7 @@ | |||
2 | 2 | ||
3 | # my repo | 3 | # my repo |
4 | sync() { | 4 | sync() { |
5 | [[ -d $1 || -z $(git remote -v) ]] && return | 5 | { cd $1 && [[ -n $(git remote -v) ]] || return ; } 2>/dev/null |
6 | cd $1 | ||
7 | git pull --quiet || echo in `pwd` >/dev/tty & | 6 | git pull --quiet || echo in `pwd` >/dev/tty & |
8 | } | 7 | } |
9 | sync $SETTING_DIR | 8 | sync $SETTING_DIR |