mirror of
https://github.com/winapps-org/winapps.git
synced 2025-09-16 06:19:37 +02:00
silence false-positive shellcheck SC2329
Signed-off-by: Rohan Barar <rohan.barar@gmail.com>
This commit is contained in:
2
setup.sh
2
setup.sh
@@ -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=$?
|
||||||
|
Reference in New Issue
Block a user