]> source.dussan.org Git - sonar-scanner-cli.git/commitdiff
SONARUNNER-122 Quote SONAR_RUNNER_HOME in bat script
authorJulien HENRY <julien.henry@sonarsource.com>
Tue, 14 Oct 2014 15:51:25 +0000 (17:51 +0200)
committerJulien HENRY <julien.henry@sonarsource.com>
Tue, 14 Oct 2014 15:52:21 +0000 (17:52 +0200)
sonar-runner-dist/src/main/assembly/bin/sonar-runner.bat

index 313c736e547b29caf756a8355451e11b39ceea64..e3e603e62bccfcdd0bf8b7e2d4a124f8265cc3d7 100644 (file)
@@ -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