mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-08 20:28:55 -05:00
Hotfix update.bat
This commit is contained in:
parent
441b405cc3
commit
9ded9420d0
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user