diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml index b706ca28..c5f373be 100644 --- a/.github/workflows/shellcheck.yml +++ b/.github/workflows/shellcheck.yml @@ -29,7 +29,8 @@ jobs: # Excluding SC2124: Assigning an array to a string! Check instead if # this is a false positive or if there is a better # way to do it. - SHELLCHECK_OPTS: -e SC3043 -e SC2154 -e SC3037 -e SC2155 -e SC2124 + # Excluding SC2106: This only exits the subshell caused by the (...) group. + SHELLCHECK_OPTS: -e SC3043 -e SC2154 -e SC3037 -e SC2155 -e SC2124 -e SC2106 with: severity: warning scandir: "./usr/local/share/bastille" diff --git a/usr/local/share/bastille/common.sh b/usr/local/share/bastille/common.sh index ecc94464..21dcf6f8 100644 --- a/usr/local/share/bastille/common.sh +++ b/usr/local/share/bastille/common.sh @@ -102,7 +102,7 @@ bastille_running_jobs() { if [ "${_running_jobs}" -ge "${_process_limit}" ]; then # Wait for at least one process to finish - wait -n 2>/dev/null || wait + wait 2>/dev/null || wait _running_jobs=$((_running_jobs - 1))