silence false-positive shellcheck SC2329

Signed-off-by: Rohan Barar <rohan.barar@gmail.com>
This commit is contained in:
Rohan Barar
2025-09-10 22:00:45 +10:00
parent 7d3a9e9126
commit e6870012ed

View File

@@ -116,7 +116,7 @@ trap "waTerminateScript" ERR # Catch non-zero return values.
### FUNCTIONS ### ### FUNCTIONS ###
# Name: 'waTerminateScript' # Name: 'waTerminateScript'
# Role: Terminates the script when a non-zero return value is encountered. # Role: Terminates the script when a non-zero return value is encountered.
# shellcheck disable=SC2317 # Silence warning regarding this function being unreachable. # shellcheck disable=SC2329 # Silence warning regarding this function never being invoked (shellCheck is currently bad at figuring out functions that are invoked via trap).
function waTerminateScript() { function waTerminateScript() {
# Store the non-zero exit status received by the trap. # Store the non-zero exit status received by the trap.
local EXIT_STATUS=$? local EXIT_STATUS=$?