Skip to content

Commit

Permalink
Check for all error exit codes and not just 1
Browse files Browse the repository at this point in the history
  • Loading branch information
mre committed Dec 14, 2020
1 parent 5f89413 commit b9d270d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Expand Up @@ -12,7 +12,7 @@ lychee "$@" --output "$LYCHEE_TMP"
exit_code=$?

# If link errors were found, create a report in the designated directory
if [ $exit_code -eq 1 ]; then
if [ $exit_code -ne 0 ]; then
mkdir -p "$(dirname $LYCHEE_OUT)"
echo 'Errors were reported while checking the availability of links:' > $LYCHEE_OUT
cat "$LYCHEE_TMP" >> $LYCHEE_OUT
Expand Down

0 comments on commit b9d270d

Please sign in to comment.