From 07b55c6b20c35adf4d351ff9e07002591a516d95 Mon Sep 17 00:00:00 2001 From: dw1 Date: Tue, 23 Jun 2020 00:40:38 +0700 Subject: [PATCH] :bug: Bug fixed for #2 --- entrypoint.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index c4cf99e..5e2d248 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -10,11 +10,7 @@ if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then fi fi -if [[ -z "${INPUT_PASSWORD}" ]]; then - SONAR_PASSWORD="&& true" -else - SONAR_PASSWORD="${INPUT_PASSWORD}" -fi +[[ ! -z ${INPUT_PASSWORD} ]] && SONAR_PASSWORD="${INPUT_PASSWORD}" || SONAR_PASSWORD="" sonar-scanner \ -Dsonar.host.url=${INPUT_HOST} \