Hotfix update.bat

This commit is contained in:
Twentysix 2016-08-19 15:43:09 +02:00 committed by GitHub
parent 441b405cc3
commit 9ded9420d0

View File

@ -21,7 +21,9 @@ git pull
echo.
echo Updating requirements...
py.exe --version > NUL 2>&1
::Attempts to start py launcher without relying on PATH
%SYSTEMROOT%\py.exe --version > NUL 2>&1
IF %ERRORLEVEL% NEQ 0 GOTO attempt
%SYSTEMROOT%\py.exe -3.5 -m pip install --upgrade -r requirements.txt
PAUSE
GOTO end
@ -37,7 +39,7 @@ GOTO end
::As a last resort, attempts to start whatever Python there is
:lastattempt
python.exe --version > NUL 2>&1
IF %ERRORLEVEL% NEQ 0 GOTO message
IF %ERRORLEVEL% NEQ 0 GOTO pythonmessage
python.exe -m pip install --upgrade -r requirements.txt
PAUSE
GOTO end
@ -53,4 +55,4 @@ echo Git is either not installed or not in the PATH environment variable. Instal
echo https://twentysix26.github.io/Red-Docs/red_install_windows/#software
PAUSE
:end
:end