From e4b9629a3df499cb560ec1c97bcbb8588451ea9e Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Thu, 28 Apr 2022 13:14:23 +0800 Subject: Update --- tools/init/sync.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'tools/init') 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 & sync ~/.password-store & sync ~/.vim_runtime & -while [ $(jobs -r | wc -l) -gt 0 ]; do - sleep 1; -done - -if which notify-send &>/dev/null; then - notify-send 'Repos synced' -fi +while true; do + if test $(jobs -r | wc -l) -gt 0; then + sleep 1; + else + which notify-send &>/dev/null && notify-send 'Repos synced' + break + fi +done & # others repo #check_upstream ~/git/tig || echo in `pwd` >/dev/tty & -- cgit v1.2.3-70-g09d2