From: Julien HENRY Date: Tue, 14 Oct 2014 15:51:25 +0000 (+0200) Subject: SONARUNNER-122 Quote SONAR_RUNNER_HOME in bat script X-Git-Tag: 2.5-rc1~100 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=823f91373068015c4914e1c682e68a0d4e140a8d;p=sonar-scanner-cli.git SONARUNNER-122 Quote SONAR_RUNNER_HOME in bat script --- 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