From 5f0b5356929ddab0e0366a1c604f3f55dd0f2fe3 Mon Sep 17 00:00:00 2001 From: Cody Simms Date: Tue, 12 Dec 2023 13:36:18 -0600 Subject: [PATCH] Check for existance of .scannerwork in cleanup script --- cleanup.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cleanup.sh b/cleanup.sh index 79e6545..72d5f41 100644 --- a/cleanup.sh +++ b/cleanup.sh @@ -2,6 +2,11 @@ set -e +if [ ! -d "${INPUT_PROJECTBASEDIR}/.scannerwork" ]; then + echo ".scannerwork directory not found; nothing to clean up." + exit +fi + _tmp_file=$(ls "${INPUT_PROJECTBASEDIR}/" | head -1) PERM=$(stat -c "%u:%g" "${INPUT_PROJECTBASEDIR}/$_tmp_file")