From fa0556d6ed1daa1ecb2265713254e98579e0c48c Mon Sep 17 00:00:00 2001 From: Sindunata Sudarmaji Date: Mon, 29 Sep 2014 22:51:36 +0900 Subject: [PATCH] Fix broken lein self-install --- bin/lein.bat | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/lein.bat b/bin/lein.bat index 7c82b921..08185e33 100755 --- a/bin/lein.bat +++ b/bin/lein.bat @@ -141,21 +141,21 @@ if NOT "x%HTTP_CLIENT%" == "x" ( %HTTP_CLIENT% %1 %2 goto EOF ) -call wget >nul 2>&1 -if NOT ERRORLEVEL 9009 ( +call wget --help >nul 2>&1 +if NOT ERRORLEVEL 1 ( call wget --no-check-certificate -O %1 %2 goto EOF ) -call curl >nul 2>&1 -if NOT ERRORLEVEL 9009 ( +call curl --help >nul 2>&1 +if NOT ERRORLEVEL 1 ( rem We set CURL_PROXY to a space character below to pose as a no-op argument set CURL_PROXY= if NOT "x%HTTPS_PROXY%" == "x" set CURL_PROXY="-x %HTTPS_PROXY%" call curl %CURL_PROXY% --insecure -f -L -o %1 %2 goto EOF ) -powershell -? >nul 2>&1 -if NOT ERRORLEVEL 9009 ( +call powershell -? >nul 2>&1 +if NOT ERRORLEVEL 1 ( powershell -Command "& {param($a,$f) (new-object System.Net.WebClient).DownloadFile($a, $f)}" ""%2"" ""%1"" goto EOF )