From 823f91373068015c4914e1c682e68a0d4e140a8d Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Tue, 14 Oct 2014 17:51:25 +0200 Subject: [PATCH] SONARUNNER-122 Quote SONAR_RUNNER_HOME in bat script --- sonar-runner-dist/src/main/assembly/bin/sonar-runner.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-runner-dist/src/main/assembly/bin/sonar-runner.bat b/sonar-runner-dist/src/main/assembly/bin/sonar-runner.bat index 313c736..e3e603e 100644 --- a/sonar-runner-dist/src/main/assembly/bin/sonar-runner.bat +++ b/sonar-runner-dist/src/main/assembly/bin/sonar-runner.bat @@ -55,7 +55,7 @@ goto run :cleanSonarRunnerHome @REM If the property has a trailing backslash, remove it -if %SONAR_RUNNER_HOME:~-1%==\ set SONAR_RUNNER_HOME=%SONAR_RUNNER_HOME:~0,-1% +if "%SONAR_RUNNER_HOME:~-1%"=="\" set SONAR_RUNNER_HOME=%SONAR_RUNNER_HOME:~0,-1% @REM Check if the provided SONAR_RUNNER_HOME is a valid install dir IF EXIST "%SONAR_RUNNER_HOME%\lib\sonar-runner-dist-${project.version}.jar" goto run -- 2.39.5