From 8b3805e575d970accd97cddbfab2fb6a6526ac7c Mon Sep 17 00:00:00 2001 From: nv35 <76777923+nv35@users.noreply.github.com> Date: Wed, 4 May 2022 14:28:18 +0200 Subject: [PATCH] Reset temp folder perms even if scan fails Fix #27 --- entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index f4c1fed..27564dc 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,6 +1,7 @@ #!/bin/bash -set -e +# Finish the script and reset .scannerwork perms even if scan fails +set +e if [[ -z "${SONAR_TOKEN}" ]]; then echo "============================ WARNING ============================"