From 3f23ccb2c30c9c4587f236a05b09228f85b2b348 Mon Sep 17 00:00:00 2001 From: tschettervictor Date: Sun, 4 May 2025 12:42:58 -0600 Subject: [PATCH] shellcheck disable 2106 --- .github/workflows/shellcheck.yml | 3 ++- usr/local/share/bastille/common.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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))