arkenfox support
also fixes mixed line endings
This commit is contained in:
parent
18112f9ae8
commit
3e4c56cf27
21
updater.bat
21
updater.bat
@ -3,10 +3,10 @@ TITLE ghacks user.js updater
|
|||||||
|
|
||||||
REM ## ghacks-user.js updater for Windows
|
REM ## ghacks-user.js updater for Windows
|
||||||
REM ## author: @claustromaniac
|
REM ## author: @claustromaniac
|
||||||
REM ## version: 4.10
|
REM ## version: 4.11
|
||||||
REM ## instructions: https://github.com/ghacksuserjs/ghacks-user.js/wiki/3.3-Updater-Scripts
|
REM ## instructions: https://github.com/ghacksuserjs/ghacks-user.js/wiki/3.3-Updater-Scripts
|
||||||
|
|
||||||
SET v=4.10
|
SET v=4.11
|
||||||
|
|
||||||
VERIFY ON
|
VERIFY ON
|
||||||
CD /D "%~dp0"
|
CD /D "%~dp0"
|
||||||
@ -100,7 +100,10 @@ IF NOT EXIST user.js (
|
|||||||
)
|
)
|
||||||
:exitloop
|
:exitloop
|
||||||
IF NOT "!_name!"=="" (
|
IF NOT "!_name!"=="" (
|
||||||
IF /I NOT "!_name!"=="!_name:ghacks=!" (
|
SET "_tempvar="
|
||||||
|
IF /I NOT "!_name!"=="!_name:ghacks=!" SET _tempvar=1
|
||||||
|
IF /I NOT "!_name!"=="!_name:arkenfox=!" SET _tempvar=1
|
||||||
|
IF !_tempvar! EQU 1 (
|
||||||
CALL :message "!_name! !_version:~2!,!_date!"
|
CALL :message "!_name! !_version:~2!,!_date!"
|
||||||
) ELSE (CALL :message "Current user.js version not recognised.")
|
) ELSE (CALL :message "Current user.js version not recognised.")
|
||||||
) ELSE (CALL :message "Current user.js version not recognised.")
|
) ELSE (CALL :message "Current user.js version not recognised.")
|
||||||
@ -136,10 +139,10 @@ IF EXIST user.js.new (
|
|||||||
IF DEFINED _rfpalts (
|
IF DEFINED _rfpalts (
|
||||||
CALL :message "Activating RFP Alternatives section..."
|
CALL :message "Activating RFP Alternatives section..."
|
||||||
CALL :activate user.js.new "[SETUP-non-RFP]"
|
CALL :activate user.js.new "[SETUP-non-RFP]"
|
||||||
)
|
)
|
||||||
IF DEFINED _esr (
|
IF DEFINED _esr (
|
||||||
CALL :message "Activating ESR section..."
|
CALL :message "Activating ESR section..."
|
||||||
CALL :activate user.js.new ".x still uses all the following prefs"
|
CALL :activate user.js.new ".x still uses all the following prefs"
|
||||||
)
|
)
|
||||||
IF DEFINED _multi (
|
IF DEFINED _multi (
|
||||||
FORFILES /P user.js-overrides /M *.js >nul 2>&1
|
FORFILES /P user.js-overrides /M *.js >nul 2>&1
|
||||||
@ -216,8 +219,8 @@ ENDLOCAL
|
|||||||
GOTO :EOF
|
GOTO :EOF
|
||||||
|
|
||||||
::::::::::::::: Activate Section :::::::::::::::
|
::::::::::::::: Activate Section :::::::::::::::
|
||||||
:activate
|
:activate
|
||||||
:: arg1 = file
|
:: arg1 = file
|
||||||
:: arg2 = line substring
|
:: arg2 = line substring
|
||||||
SETLOCAL DisableDelayedExpansion
|
SETLOCAL DisableDelayedExpansion
|
||||||
(
|
(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user