aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-10-14 17:51:25 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2014-10-14 17:52:21 +0200
commit823f91373068015c4914e1c682e68a0d4e140a8d (patch)
treec1a2fca23f687182aa0be3800acecc3012b0587e
parent1ca642171fefc7e84787776ece826e4eb0094ef8 (diff)
downloadsonar-scanner-cli-823f91373068015c4914e1c682e68a0d4e140a8d.tar.gz
sonar-scanner-cli-823f91373068015c4914e1c682e68a0d4e140a8d.zip
SONARUNNER-122 Quote SONAR_RUNNER_HOME in bat script
-rw-r--r--sonar-runner-dist/src/main/assembly/bin/sonar-runner.bat2
1 files changed, 1 insertions, 1 deletions
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