From 86f2bbdd77862fc8482ad3d8aaeac9152719a874 Mon Sep 17 00:00:00 2001 From: "antoine.vinot" Date: Fri, 12 Jul 2024 08:49:45 +0200 Subject: [PATCH] Testing QA --- entrypoint.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index cbba81a..debeead 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -21,10 +21,10 @@ if [[ -z "${SONARCLOUD_URL}" ]]; then SONARCLOUD_URL="https://sonarcloud.io" fi -debug_flag='' -if [[ "$RUNNER_DEBUG" == '1' ]]; then - debug_flag=' --debug ' -fi + +debug="" +[[ "$RUNNER_DEBUG" == '1' ]] && debug="yes" unset JAVA_HOME -sonar-scanner "$debug_flag" -Dsonar.projectBaseDir="${INPUT_PROJECTBASEDIR}" -Dsonar.host.url="${SONARCLOUD_URL}" "${INPUT_ARGS}" + +sonar-scanner ${debug:+"--debug"} -Dsonar.projectBaseDir="${INPUT_PROJECTBASEDIR}" -Dsonar.host.url="${SONARCLOUD_URL}" "${INPUT_ARGS}"