1
1
Fork 0
mirror of https://github.com/arkenfox/user.js.git synced 2024-05-28 18:36:11 +02:00

FIND instead of MORE

to keep TABS intact
This commit is contained in:
earthlng 2017-12-18 16:33:21 +01:00 committed by GitHub
parent 1571e067e7
commit 6973bb459c
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ IF DEFINED _updateb (
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://github.com/ghacksuserjs/ghacks-user.js/raw/master/updater.bat', '[updated]!_myname!.new')"
) >nul 2>&1
IF EXIST "[updated]!_myname!.new" (
TYPE "[updated]!_myname!.new" | MORE /E /P /T4 > "[updated]!_myname!.bat"
TYPE "[updated]!_myname!.new" | FIND /V "" > "[updated]!_myname!.bat"
DEL /F "[updated]!_myname!.new" >nul
START /min CMD /C "[updated]!_myname!.bat" !_myparams!
EXIT /B