From 90ae49de10083f125159e48ad3617af1fe840898 Mon Sep 17 00:00:00 2001 From: xZero707 Date: Sun, 19 May 2024 00:23:58 +0200 Subject: [PATCH] Add double quotes to prevent splitting --- rootfs/etc/s6-overlay/s6-rc.d/init-install-resources/run | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rootfs/etc/s6-overlay/s6-rc.d/init-install-resources/run b/rootfs/etc/s6-overlay/s6-rc.d/init-install-resources/run index b908423..1671d41 100755 --- a/rootfs/etc/s6-overlay/s6-rc.d/init-install-resources/run +++ b/rootfs/etc/s6-overlay/s6-rc.d/init-install-resources/run @@ -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