diff options
-rwxr-xr-x | cac | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -121,6 +121,7 @@ __cac_cli__resources() { #? __cac_cli__update() {( umask 0077 + pids="" for x in \ resources \ servers \ @@ -134,8 +135,9 @@ __cac_cli__update() {( echo $json | jq . > "$file".tmp mv "$file".tmp "$file" } & + pids="$pids $!" done - wait + for pid in $pids; do wait $pid;done )} #? cac getserver SERVERSPEC |