Skip to content

Commit

Permalink
Merge pull request #428 from tsuyoshicho/fix/refixexitcode
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuyoshicho authored Aug 7, 2024
2 parents 7fad682 + 0f22bc6 commit f59453e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,10 @@ fi

# Throw error if an error occurred and fail_on_error is true
# textlint exitcode: 0 success 1 lint error detect 2 fatal error
# (not 0) AND (not 1) is error
if [[ "${INPUT_FAIL_ON_ERROR}" == "true" \
&& (( "${textlint_exit_val}" != "0" \
|| "${textlint_exit_val}" != "1" ) \
&& "${textlint_exit_val}" != "1" ) \
|| "${reviewdog_exit_val}" != "0" ) \
]]; then
exit 1
Expand Down

0 comments on commit f59453e

Please sign in to comment.