Check for existance of .scannerwork in cleanup script

This commit is contained in:
Cody Simms 2023-12-12 13:36:18 -06:00 committed by Cody Simms
commit 5f0b535692

View file

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