Skip to content

Commit 2b685a5

Browse files
committed
Addressing issue #328, cleaned up the error message, to be more correct, but not more useful :-/
1 parent df486cb commit 2b685a5

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

entrypoint.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,9 @@ fi
177177
echo "----------------------------------------------------------------"
178178

179179
if [ -n "$GITHUB_ACTIONS" ]; then
180-
test "$EXITCODE" -gt 1 && echo "::error title=Spelling check::Spelling check action failed, please check diagnostics";
181-
182-
test "$EXITCODE" -eq 1 && echo "::error title=Spelling errors::Files in repository contain spelling errors";
180+
test "$EXITCODE" -gt 0 && echo "::error title=Error::Files in repository contain spelling errors or or spelling check action failed, please check diagnostics";
183181
else
184-
test "$EXITCODE" -gt 1 && echo "Spelling check action failed, please check diagnostics";
185-
186-
test "$EXITCODE" -eq 1 && echo "Files in repository contain spelling errors";
182+
test "$EXITCODE" -gt 0 && echo "Files in repository contain spelling errors or spelling check action failed, please check diagnostics";
187183
fi
188184

189185
exit "$EXITCODE"

0 commit comments

Comments
 (0)