From ca947c6ae4b62f60be3719b10e72fb160cf0b9c8 Mon Sep 17 00:00:00 2001 From: claustromaniac <20734810+claustromaniac@users.noreply.github.com> Date: Sun, 17 Dec 2017 15:02:52 +0000 Subject: [PATCH] 4.0b3 - ignore the previous commit lol --- updater.bat | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/updater.bat b/updater.bat index 388e70b..b7f65c9 100644 --- a/updater.bat +++ b/updater.bat @@ -201,22 +201,26 @@ SETLOCAL DisableDelayedExpansion ( FOR /F "tokens=1,* delims=," %%G IN ('FINDSTR /B /I /C:"user_pref" "%~1"') DO (SET "%%G=%%H") FOR /F "tokens=1,* delims=]" %%I IN ('FIND /N /V "" ^< "%~1"') DO ( - FOR /F "delims=," %%K IN ("%%J") DO ( - IF NOT [user_pref("_user.js.parrot"]==[%%K] ( - IF DEFINED %%K ( - SETLOCAL EnableDelayedExpansion - FOR /F "delims=" %%L IN ("!%%K!") DO ( - ENDLOCAL - IF NOT "%%L"=="ALREADY MERGED" ( - ECHO:%%K,%%L - SET "%%K=ALREADY MERGED" + IF ""=="%%J" ( + ECHO: + ) ELSE ( + FOR /F "delims=," %%K IN ("%%J") DO ( + IF NOT [user_pref("_user.js.parrot"]==[%%K] ( + IF DEFINED %%K ( + SETLOCAL EnableDelayedExpansion + FOR /F "delims=" %%L IN ("!%%K!") DO ( + ENDLOCAL + IF NOT "%%L"=="ALREADY MERGED" ( + ECHO:%%K,%%L + SET "%%K=ALREADY MERGED" + ) ) + ) ELSE ( + ECHO:%%J ) ) ELSE ( ECHO:%%J ) - ) ELSE ( - ECHO:%%J ) ) )