From 7a612217f665b3fde53a598d97a202ae69b1f573 Mon Sep 17 00:00:00 2001 From: Milorad Jovanovic Date: Tue, 25 Feb 2025 15:04:12 +0100 Subject: [PATCH] OCMP-0 --- run-sonar-scanner.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/run-sonar-scanner.sh b/run-sonar-scanner.sh index 14caadc..3573fb6 100755 --- a/run-sonar-scanner.sh +++ b/run-sonar-scanner.sh @@ -37,5 +37,9 @@ scanner_args+=("$@") set -ux -$SCANNER_BIN "${scanner_args[@]}" +if [[ ${#scanner_args[@]} -eq 0 ]]; then + $SCANNER_BIN +else + $SCANNER_BIN "${scanner_args[@]}" +fi