Add double quotes to prevent splitting

This commit is contained in:
Aleksandar Puharic 2024-05-19 00:23:58 +02:00
parent 0e70c8c099
commit 90ae49de10
Signed by: xZero707
GPG Key ID: 3CC53DCAA9C237BB

View File

@ -92,8 +92,8 @@ taskInstallPlugins() {
echo "Waiting for all tasks to finish..."
for pid in ${jobs[@]}; do
wait $pid
for pid in "${jobs[@]}"; do
wait "$pid"
done
# Plugins are installed concurrently, so we need to verify if installed, separately
@ -130,8 +130,8 @@ main() {
echo "Waiting for all tasks to complete"
# Wait for all tasks but do not wait for the background task
for pid in ${jobs[@]}; do
wait $pid
for pid in "${jobs[@]}"; do
wait "$pid"
done
return 0