Skip to content

Commit

Permalink
Fix erroneous complaint from github actions
Browse files Browse the repository at this point in the history
Shellcheck in github actions is giving false positive
for unreachable code.

Signed-off-by: Tero Tervala <tero.tervala@unikie.com>
  • Loading branch information
tervis-unikie committed Feb 20, 2024
1 parent e3554f0 commit bfb1c92
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions githooks/check-commits.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ SDIR="$(realpath "$SDIR")"
TMPF="/tmp/TEMP.MSG"

function On_exit {
# My shellcheck did not complain, however github actions shellcheck did.
# Complaint was that this code is unreachable, it is actually reachable.
# shellcheck disable=SC2317
rm -f "$TMPF"
}

Expand Down

0 comments on commit bfb1c92

Please sign in to comment.