From ac7ad78d1dda534b1904e0f62a0cecb7d5fb5f59 Mon Sep 17 00:00:00 2001 From: claustromaniac <20734810+claustromaniac@users.noreply.github.com> Date: Thu, 30 Nov 2017 18:22:18 +0000 Subject: [PATCH] 3.1a1 Just added a few lines to make batch updates more visible - which helps with testing. --- updater.bat | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/updater.bat b/updater.bat index 37b5867..bc95e4f 100644 --- a/updater.bat +++ b/updater.bat @@ -3,7 +3,7 @@ TITLE ghacks user.js updater REM ### ghacks-user.js updater for Windows REM ## author: @claustromaniac -REM ## version: 3.1a +REM ## version: 3.1a1 SET _myname=%~n0 SET _myparams=%* @@ -39,6 +39,9 @@ IF DEFINED _updateb ( IF NOT "!_myname:~0,9!"=="[updated]" ( IF EXIST "[updated]!_myname!.bat" ( DEL /F "[updated]!_myname!.bat" + ECHO Script updated^^! + ECHO. + ECHO. GOTO begin ) ECHO Checking updater version... @@ -211,7 +214,7 @@ REM ###### Merge function ###### :merge SETLOCAL disabledelayedexpansion ( - FOR /F "tokens=1,* delims=]" %%G IN ('find /n /v "" ^< "%~1"') DO ( + FOR /F "tokens=1,* delims=]" %%G IN ('FIND /n /v "" ^< "%~1"') DO ( SET "_pref=%%H" SETLOCAL enabledelayedexpansion SET "_temp=!_pref: =!"