From b9d270dc4788c849d00b9647f93bb3bd2f9066ed Mon Sep 17 00:00:00 2001 From: Matthias Endler Date: Mon, 14 Dec 2020 02:08:26 +0100 Subject: [PATCH] Check for all error exit codes and not just 1 --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 984cb72..f031963 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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