mirror of
https://github.com/sonarsource/sonarcloud-github-action.git
synced 2026-06-08 21:17:10 +00:00
Check for existance of .scannerwork in cleanup script
This commit is contained in:
parent
fb9ead3f76
commit
5f0b535692
1 changed files with 5 additions and 0 deletions
|
|
@ -2,6 +2,11 @@
|
||||||
|
|
||||||
set -e
|
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)
|
_tmp_file=$(ls "${INPUT_PROJECTBASEDIR}/" | head -1)
|
||||||
PERM=$(stat -c "%u:%g" "${INPUT_PROJECTBASEDIR}/$_tmp_file")
|
PERM=$(stat -c "%u:%g" "${INPUT_PROJECTBASEDIR}/$_tmp_file")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue