mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2024-11-23 17:42:29 +01:00
Add double quotes to prevent splitting
This commit is contained in:
parent
0e70c8c099
commit
90ae49de10
|
@ -92,8 +92,8 @@ taskInstallPlugins() {
|
||||||
|
|
||||||
echo "Waiting for all tasks to finish..."
|
echo "Waiting for all tasks to finish..."
|
||||||
|
|
||||||
for pid in ${jobs[@]}; do
|
for pid in "${jobs[@]}"; do
|
||||||
wait $pid
|
wait "$pid"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Plugins are installed concurrently, so we need to verify if installed, separately
|
# Plugins are installed concurrently, so we need to verify if installed, separately
|
||||||
|
@ -130,8 +130,8 @@ main() {
|
||||||
echo "Waiting for all tasks to complete"
|
echo "Waiting for all tasks to complete"
|
||||||
|
|
||||||
# Wait for all tasks but do not wait for the background task
|
# Wait for all tasks but do not wait for the background task
|
||||||
for pid in ${jobs[@]}; do
|
for pid in "${jobs[@]}"; do
|
||||||
wait $pid
|
wait "$pid"
|
||||||
done
|
done
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user