summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcac4
1 files changed, 3 insertions, 1 deletions
diff --git a/cac b/cac
index e25c54f..b9982b2 100755
--- a/cac
+++ b/cac
@@ -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