1
0
- added missing -unattended switch to the list of switches
- other minor changes
This commit is contained in:
claustromaniac 2017-12-24 16:49:33 +00:00 committed by GitHub
parent 68efac4cc8
commit b9266bba1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,10 @@
@ECHO OFF & SETLOCAL EnableDelayedExpansion @ECHO OFF & SETLOCAL EnableDelayedExpansion
TITLE ghacks user.js updater 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.0 REM ## version: 4.1
REM ## instructions: https://github.com/ghacksuserjs/ghacks-user.js/wiki/3.3-Updater-Scripts
SET _myname=%~n0 SET _myname=%~n0
SET _myparams=%* SET _myparams=%*
@ -75,7 +76,7 @@ ECHO:
ECHO: ######################################## ECHO: ########################################
ECHO: #### user.js Updater for Windows #### ECHO: #### user.js Updater for Windows ####
ECHO: #### by claustromaniac #### ECHO: #### by claustromaniac ####
ECHO: #### v4.0 #### ECHO: #### v4.1 ####
ECHO: ######################################## ECHO: ########################################
ECHO: ECHO:
SET /A "_line=0" SET /A "_line=0"
@ -230,26 +231,29 @@ ENDLOCAL
GOTO :EOF GOTO :EOF
REM ############### Help ################## REM ############### Help ##################
:showhelp :showhelp
MODE 80,38 MODE 80,43
CLS CLS
CALL :message "Available switches (case-insensitive):" CALL :message "Available arguments (case-insensitive):"
CALL :message " -log" CALL :message " -log"
ECHO: Writes the console output to a logfile (user.js-update-log.txt) ECHO: Writes the console output to a logfile (user.js-update-log.txt)
CALL :message " -logP" CALL :message " -logP"
ECHO: Like log, but also opens the logfile after updating. ECHO: Like log, but also opens the logfile after updating.
CALL :message " -merge" CALL :message " -merge"
ECHO: Merges overrides instead of appending them. Comments and _user.js.parrot ECHO: Merges overrides instead of appending them. One-line comments and
ECHO: lines are appended normally. Overrides for inactive (commented out) ECHO: _user.js.parrot lines are appended normally. Overrides for inactive
ECHO: user.js prefs will be appended. When -Merge and -MultiOverrides are used ECHO: user.js prefs will be appended. When -Merge and -MultiOverrides are used
ECHO: together, a user-overrides-merged.js file is also generated in the root ECHO: together, a user-overrides-merged.js file is also generated in the root
ECHO: directory for quick reference. It contains only the merged data from ECHO: directory for quick reference. It contains only the merged data from
ECHO: override files and can be safely discarded after updating, or used as the ECHO: override files and can be safely discarded after updating, or used as the
ECHO: new user-overrides.js. When there are conflicting records for the same ECHO: new user-overrides.js. When there are conflicting records for the same
ECHO: pref, the value of the last one declared will be used. ECHO: pref, the value of the last one declared will be used. Visit the GitHub
ECHO: repository for usage examples and more detailed information.
CALL :message " -multiOverrides" CALL :message " -multiOverrides"
ECHO: uses any and all .js files in a user.js-overrides sub-folder as overrides ECHO: Uses any and all .js files in a user.js-overrides sub-folder as overrides
ECHO: instead of the default user-overrides.js file. Files are appended in ECHO: instead of the default user-overrides.js file. Files are appended in
ECHO: alphabetical order. ECHO: alphabetical order.
CALL :message " -unattended"
ECHO: Skips user input.
CALL :message " -updatebatch" CALL :message " -updatebatch"
ECHO: The script will update itself on execution. ECHO: The script will update itself on execution.
CALL :message "" CALL :message ""