diff --git a/functions/update_apps.sh b/functions/update_apps.sh index 0a0c6bf0..2403ff2e 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -44,7 +44,7 @@ do ((it++)) ((proc_count++)) done - elif [[ $proc_count != 0 ]]; then # Wait for all processes to finish + elif [[ ${#processes[@]} != 0 ]]; then # Wait for all processes to finish sleep $delay else # All processes must be completed, break out of loop break