Skip to content

Commit

Permalink
fix exit code handling
Browse files Browse the repository at this point in the history
  • Loading branch information
haya14busa committed Sep 25, 2021
1 parent 8bfd043 commit 6ea64ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ shellcheck -f diff ${FILES} \
${INPUT_REVIEWDOG_FLAGS} || EXIT_CODE_SUGGESTION=$?
echo '::endgroup::'

if [ "${EXIT_CODE}" != 0 ] || [ "${EXIT_CODE_SUGGESTION}" != 0 ]; then
if [ -n "${EXIT_CODE}" ] || [ -n "${EXIT_CODE_SUGGESTION}" ]; then
exit 1
fi

0 comments on commit 6ea64ea

Please sign in to comment.