Skip to content

Commit

Permalink
Create lychee output file on panic (fixes #82) (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
mre authored Mar 1, 2022
1 parent 4d7aa6b commit f0cc808
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ FORMAT=""
eval lychee ${FORMAT} --output ${LYCHEE_TMP} ${ARGS}
exit_code=$?

if [ ! -f "${LYCHEE_TMP}" ]; then
echo "No output. Check pipeline run to see if lychee panicked." > "${LYCHEE_TMP}"
fi

# If link errors were found, create a report in the designated directory
if [ $exit_code -ne 0 ]; then
mkdir -p "$(dirname -- "${INPUT_OUTPUT}")"
Expand Down

0 comments on commit f0cc808

Please sign in to comment.