Skip to content
Browse files

Allow for spaces in LEIN_JAR path in lein.bat.

  • Loading branch information...
1 parent 2ab1d4c commit 3c473d9fa6b7c47d1ddcf3183c14adec12ae1f78 @trptcolin trptcolin committed Oct 28, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 bin/lein.bat
View
8 bin/lein.bat
@@ -71,11 +71,11 @@ echo "%LEIN_JAR%" can not be found.
echo You can try running "lein self-install"
echo or change LEIN_JAR environment variable
echo or edit lein.bat to set appropriate LEIN_JAR path.
-echo.
+echo.
goto EOF
:SELF_INSTALL
-if exist %LEIN_JAR% (
+if exist "%LEIN_JAR%" (
echo %LEIN_JAR% already exists. Delete and retry.
goto EOF
)
@@ -89,9 +89,9 @@ if ERRORLEVEL 9009 (
set LEIN_DIR=%~dp0
set LEIN_JAR=%LEIN_DIR%leiningen-%LEIN_VERSION%-standalone.jar
set LEIN_JAR_URL=http://github.com/downloads/technomancy/leiningen/leiningen-%LEIN_VERSION%-standalone.jar
-%HTTP_CLIENT% %LEIN_JAR% %LEIN_JAR_URL%
+%HTTP_CLIENT% "%LEIN_JAR%" %LEIN_JAR_URL%
if ERRORLEVEL 1 (
- del %LEIN_JAR%>nul 2>&1
+ del "%LEIN_JAR%">nul 2>&1
goto DOWNLOAD_FAILED
)
goto EOF

0 comments on commit 3c473d9

Please sign in to comment.
Something went wrong with that request. Please try again.