Merge pull request #1716 from sindux/bugfix/1702-lein-self-install-broken
Fix broken lein self-install
This commit is contained in:
commit
05f958d0aa
1 changed files with 6 additions and 6 deletions
12
bin/lein.bat
12
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
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue