mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2026-01-27 23:23:15 +03:00
13 lines
334 B
Bash
Executable File
13 lines
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/" |