From a4282891d5805c0d9df0c0d524e2e95a3b0d1ac5 Mon Sep 17 00:00:00 2001 From: Jory Irving <46251616+LilDrunkenSmurf@users.noreply.github.com> Date: Fri, 5 Jan 2024 05:50:31 -0700 Subject: [PATCH] fix: cleanup if statement (#215) --- entrypoint.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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}"