diff options
Diffstat (limited to 'tools/init/sync.sh')
-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 & |