mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-25 15:41:02 -05:00
Fix shellcheck error
Signed-off-by: Brett Logan <lindluni@github.com>
This commit is contained in:
parent
ba31e65dd4
commit
d2600eb1bd
1 changed files with 2 additions and 1 deletions
|
@ -801,12 +801,13 @@ UpdateLoopsForImage() {
|
||||||
}
|
}
|
||||||
################################################################################
|
################################################################################
|
||||||
#### Function Cleanup ##########################################################
|
#### Function Cleanup ##########################################################
|
||||||
|
# shellcheck disable=SC2317
|
||||||
cleanup() {
|
cleanup() {
|
||||||
local -ri EXIT_CODE=$?
|
local -ri EXIT_CODE=$?
|
||||||
|
|
||||||
sh -c "cat ${LOG_TEMP} >> ${GITHUB_WORKSPACE}/${LOG_FILE}" || true
|
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 - 0 1 2 3 6 14 15
|
||||||
}
|
}
|
||||||
trap 'cleanup' 0 1 2 3 6 14 15
|
trap 'cleanup' 0 1 2 3 6 14 15
|
||||||
|
|
Loading…
Reference in a new issue