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")