diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2022-04-28 13:14:23 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2022-04-28 13:14:23 +0800 |
commit | e4b9629a3df499cb560ec1c97bcbb8588451ea9e (patch) | |
tree | 9b2c3d5815b14f78b4ecd277b29c112838d4cefb /tools | |
parent | 9a869c4a18832b18f112a7892c98503c56b8ad5f (diff) |
Update
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/init/sync.sh | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/tools/init/sync.sh b/tools/init/sync.sh index c65f720..349ca77 100755 --- a/tools/init/sync.sh +++ b/tools/init/sync.sh | |||
@@ -15,13 +15,14 @@ sync ~/.task & | |||
15 | sync ~/.password-store & | 15 | sync ~/.password-store & |
16 | sync ~/.vim_runtime & | 16 | sync ~/.vim_runtime & |
17 | 17 | ||
18 | while [ $(jobs -r | wc -l) -gt 0 ]; do | 18 | while true; do |
19 | sleep 1; | 19 | if test $(jobs -r | wc -l) -gt 0; then |
20 | done | 20 | sleep 1; |
21 | 21 | else | |
22 | if which notify-send &>/dev/null; then | 22 | which notify-send &>/dev/null && notify-send 'Repos synced' |
23 | notify-send 'Repos synced' | 23 | break |
24 | fi | 24 | fi |
25 | done & | ||
25 | 26 | ||
26 | # others repo | 27 | # others repo |
27 | #check_upstream ~/git/tig || echo in `pwd` >/dev/tty & | 28 | #check_upstream ~/git/tig || echo in `pwd` >/dev/tty & |