mirror of
				https://github.com/arkenfox/user.js.git
				synced 2025-11-03 23:35:26 +01:00 
			
		
		
		
	cosmetic fix
for calls to :message before the script begins logging (with -log)
This commit is contained in:
		@@ -119,6 +119,7 @@ IF DEFINED _log (
 | 
				
			|||||||
	IF DEFINED _logp (START user.js-update-log.txt)
 | 
						IF DEFINED _logp (START user.js-update-log.txt)
 | 
				
			||||||
	EXIT /B
 | 
						EXIT /B
 | 
				
			||||||
	:log
 | 
						:log
 | 
				
			||||||
 | 
						SET _log=2
 | 
				
			||||||
	ECHO:##################################################################
 | 
						ECHO:##################################################################
 | 
				
			||||||
	CALL :message "%date%, %time%"
 | 
						CALL :message "%date%, %time%"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
@@ -190,9 +191,9 @@ EXIT /B
 | 
				
			|||||||
REM ########### Message Function ###########
 | 
					REM ########### Message Function ###########
 | 
				
			||||||
:message
 | 
					:message
 | 
				
			||||||
SETLOCAL DisableDelayedExpansion
 | 
					SETLOCAL DisableDelayedExpansion
 | 
				
			||||||
IF NOT DEFINED _log (ECHO:)
 | 
					IF NOT "2"=="%_log%" (ECHO:)
 | 
				
			||||||
ECHO:  %~1
 | 
					ECHO:  %~1
 | 
				
			||||||
IF NOT DEFINED _log (ECHO:)
 | 
					IF NOT "2"=="%_log%" (ECHO:)
 | 
				
			||||||
ENDLOCAL
 | 
					ENDLOCAL
 | 
				
			||||||
GOTO :EOF
 | 
					GOTO :EOF
 | 
				
			||||||
REM ############ Merge function ############
 | 
					REM ############ Merge function ############
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user