aboutsummaryrefslogtreecommitdiff
path: root/SOURCES/process_configs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'SOURCES/process_configs.sh')
-rwxr-xr-xSOURCES/process_configs.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/SOURCES/process_configs.sh b/SOURCES/process_configs.sh
index 12edf0a..9cd5778 100755
--- a/SOURCES/process_configs.sh
+++ b/SOURCES/process_configs.sh
@@ -311,12 +311,14 @@ function process_configs()
process_config "$cfg" "$count"
fi
process_config "$cfg" "$count" &
+ # shellcheck disable=SC2004
waitpids[${count}]=$!
((count++))
while [ "$(jobs | grep -c Running)" -ge "$RHJOBS" ]; do :; done
done
+ # shellcheck disable=SC2048
for pid in ${waitpids[*]}; do
- wait ${pid}
+ wait "${pid}"
done
rm "$SCRIPT_DIR"/*.config*.old