diff --git a/entrypoint.sh b/entrypoint.sh index bfd46a5..0e560c7 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -27,10 +27,8 @@ exit_code=$? if [ ! -f "${LYCHEE_TMP}" ]; then echo "No output. Check pipeline run to see if lychee panicked." > "${LYCHEE_TMP}" -fi - -# If we have any output, create a report in the designated directory -if [ -f "${LYCHEE_TMP}" ]; then +else + # If we have any output, create a report in the designated directory mkdir -p "$(dirname -- "${INPUT_OUTPUT}")" cat "${LYCHEE_TMP}" > "${INPUT_OUTPUT}"