Skip to content

Commit

Permalink
Check for existance of .scannerwork in cleanup script
Browse files Browse the repository at this point in the history
  • Loading branch information
cody-simms-sonarsource committed Dec 12, 2023
1 parent fb9ead3 commit 5f0b535
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 5f0b535

Please sign in to comment.