1
0
mirror of https://github.com/arkenfox/user.js.git synced 2025-07-09 23:11:59 +02:00

last attempt

if this doesn't work I'll remove the damn -updatebatch part for good
This commit is contained in:
earthlng
2017-11-28 18:27:55 +01:00
committed by GitHub
parent d71321027b
commit 51d98fac09

@ -43,7 +43,8 @@ IF DEFINED _updateb (
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://github.com/ghacksuserjs/ghacks-user.js/raw/master/updater.bat', '!_myname!-updated.bat')" >nul powershell -Command "(New-Object Net.WebClient).DownloadFile('https://github.com/ghacksuserjs/ghacks-user.js/raw/master/updater.bat', '!_myname!-updated.bat')" >nul
IF EXIST "!_myname!-updated.bat" ( IF EXIST "!_myname!-updated.bat" (
CLS CLS
START CMD /C "!_myname!-updated.bat" !_myparams:-updatebatch=! SET "_myparams=!_myparams:-updatebatch=!"
START CMD /C "!_myname!-updated.bat" !_myparams!
DEL /F "!_myname!.bat" 2>nul DEL /F "!_myname!.bat" 2>nul
EXIT /B EXIT /B
) ELSE ( ) ELSE (