From bd9e2e25508cfc01889057349b133941ff4fc379 Mon Sep 17 00:00:00 2001 From: David Powell Date: Sun, 31 Mar 2013 15:22:25 +0100 Subject: [PATCH] Allow for spaces in download locations --- bin/lein.bat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/lein.bat b/bin/lein.bat index 4a2f5f96..d3b7dc19 100755 --- a/bin/lein.bat +++ b/bin/lein.bat @@ -80,7 +80,7 @@ goto RUN rem parameters: TargetFileName Address powershell -? >nul 2>&1 if NOT ERRORLEVEL 9009 ( - powershell -Command "& {param($a,$f) (new-object System.Net.WebClient).DownloadFile($a, $f)}" %~2 %~1 + powershell -Command "& {param($a,$f) (new-object System.Net.WebClient).DownloadFile($a, $f)}" ""%2"" ""%1"" ) else ( wget >nul 2>&1 if NOT ERRORLEVEL 9009 ( @@ -123,7 +123,7 @@ if not exist %LEIN_INSTALL_DIR% mkdir %LEIN_INSTALL_DIR% echo Downloading Leiningen now... set LEIN_JAR_URL=https://leiningen.s3.amazonaws.com/downloads/leiningen-%LEIN_VERSION%-standalone.jar -call :DownloadFile "%LEIN_JAR%.pending" %LEIN_JAR_URL% +call :DownloadFile "%LEIN_JAR%.pending" "%LEIN_JAR_URL%" if ERRORLEVEL 1 ( del "%LEIN_JAR%.pending" >nul 2>&1 goto DOWNLOAD_FAILED @@ -154,7 +154,7 @@ echo Downloading latest Leiningen batch script... set LEIN_BAT_URL=https://raw.github.com/technomancy/leiningen/stable/bin/lein.bat set TEMP_BAT=%~dp0temp-lein-%RANDOM%%RANDOM%.bat -call :DownloadFile "%LEIN_BAT%.pending" %LEIN_BAT_URL% +call :DownloadFile "%LEIN_BAT%.pending" "%LEIN_BAT_URL%" if ERRORLEVEL 1 ( del "%LEIN_BAT%.pending" >nul 2>&1 echo Failed to download %LEIN_BAT_URL%