diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2022-04-17 23:38:54 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2022-04-17 23:38:54 +0800 |
commit | 5cf916480f3a1a65a2e5be4e47839fa91998e719 (patch) | |
tree | c5e5f7f8d33a3a3a28c3d38d9de7158f3165248d /tools/init/sync.sh | |
parent | 967993a83672b28cc73ba5889b141f9f2060a317 (diff) |
Update
Diffstat (limited to 'tools/init/sync.sh')
-rwxr-xr-x | tools/init/sync.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/init/sync.sh b/tools/init/sync.sh index ebed33a..15663f0 100755 --- a/tools/init/sync.sh +++ b/tools/init/sync.sh | |||
@@ -5,15 +5,15 @@ | |||
5 | 5 | ||
6 | # my repo | 6 | # my repo |
7 | sync() { | 7 | sync() { |
8 | { cd $1 && [[ -n $(git remote -v) ]] || return ; } 2>/dev/null | 8 | { cd $1 && [[ -n $(git remote -v) ]] || return; } 2>/dev/null |
9 | git pull --quiet || echo in `pwd` >/dev/tty & | 9 | git pull --quiet || echo in `pwd` >/dev/tty |
10 | } | 10 | } |
11 | sync $SETTING_DIR | 11 | sync $SETTING_DIR & |
12 | sync ~/blog | 12 | sync ~/blog & |
13 | sync ~/vimwiki | 13 | sync ~/vimwiki & |
14 | sync ~/.task | 14 | sync ~/.task & |
15 | sync ~/.password-store | 15 | sync ~/.password-store & |
16 | sync ~/.vim_runtime | 16 | sync ~/.vim_runtime & |
17 | 17 | ||
18 | # others repo | 18 | # others repo |
19 | #check_upstream ~/git/tig || echo in `pwd` >/dev/tty & | 19 | #check_upstream ~/git/tig || echo in `pwd` >/dev/tty & |