diff --git a/functions/update_apps.sh b/functions/update_apps.sh index a856a945..05e62519 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -32,7 +32,9 @@ do elif [[ $proc_count != 0 ]]; then # Wait for all processes to finish sleep 3 else # All processes must be completed, break out of loop - wait "${processes[*]}" + for proc in "${processes[@]}"; do + wait "$proc" + done break fi done