mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2025-12-12 17:31:15 +00:00
13 lines
No EOL
334 B
Bash
Executable file
13 lines
No EOL
334 B
Bash
Executable file
#!/bin/bash
|
|
|
|
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")
|
|
|
|
chown -R $PERM "${INPUT_PROJECTBASEDIR%/}/.scannerwork/" |