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