mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2025-12-10 10:32:39 +01:00
Add double quotes to prevent splitting
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user