From d2600eb1bd51e68b2c065501b241c450be01a216 Mon Sep 17 00:00:00 2001 From: Brett Logan Date: Wed, 4 Jan 2023 01:17:47 -0500 Subject: [PATCH] Fix shellcheck error Signed-off-by: Brett Logan --- lib/linter.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/linter.sh b/lib/linter.sh index caf59c08..3b466a7f 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -801,12 +801,13 @@ UpdateLoopsForImage() { } ################################################################################ #### Function Cleanup ########################################################## +# shellcheck disable=SC2317 cleanup() { local -ri EXIT_CODE=$? sh -c "cat ${LOG_TEMP} >> ${GITHUB_WORKSPACE}/${LOG_FILE}" || true - exit ${EXIT_CODE} + exit "${EXIT_CODE}" trap - 0 1 2 3 6 14 15 } trap 'cleanup' 0 1 2 3 6 14 15