Skip to content

Commit 0f22bc6

Browse files
committed
fix: more fix textlint exicode (rel #426)
1 parent 7fad682 commit 0f22bc6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

script.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,10 @@ fi
8989

9090
# Throw error if an error occurred and fail_on_error is true
9191
# textlint exitcode: 0 success 1 lint error detect 2 fatal error
92+
# (not 0) AND (not 1) is error
9293
if [[ "${INPUT_FAIL_ON_ERROR}" == "true" \
9394
&& (( "${textlint_exit_val}" != "0" \
94-
|| "${textlint_exit_val}" != "1" ) \
95+
&& "${textlint_exit_val}" != "1" ) \
9596
|| "${reviewdog_exit_val}" != "0" ) \
9697
]]; then
9798
exit 1

0 commit comments

Comments
 (0)