1
1
Fork 0
mirror of https://github.com/arkenfox/user.js.git synced 2024-05-28 06:26:08 +02:00

cosmetic fix

for calls to :message before the script begins logging (with -log)
This commit is contained in:
claustromaniac 2017-12-26 17:29:11 +00:00 committed by GitHub
parent 1f15e287fb
commit 68a44bcbb4
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,6 +119,7 @@ IF DEFINED _log (
IF DEFINED _logp (START user.js-update-log.txt)
EXIT /B
:log
SET _log=2
ECHO:##################################################################
CALL :message "%date%, %time%"
)
@ -190,9 +191,9 @@ EXIT /B
REM ########### Message Function ###########
:message
SETLOCAL DisableDelayedExpansion
IF NOT DEFINED _log (ECHO:)
IF NOT "2"=="%_log%" (ECHO:)
ECHO: %~1
IF NOT DEFINED _log (ECHO:)
IF NOT "2"=="%_log%" (ECHO:)
ENDLOCAL
GOTO :EOF
REM ############ Merge function ############