minor fix on the version check

'IF !_line! GEQ 4 (' is not reliable.
This commit is contained in:
claustromaniac 2018-01-16 10:46:57 -03:00 committed by GitHub
parent a0ec17955d
commit 343f77c5e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,15 +92,11 @@ IF NOT EXIST user.js (
IF !_line! EQU 3 (SET _version=%%G) IF !_line! EQU 3 (SET _version=%%G)
) )
:exitloop :exitloop
IF !_line! GEQ 4 ( IF NOT "!_name!"=="" (
IF /I NOT "!_name!"=="!_name:ghacks=!" ( IF /I NOT "!_name!"=="!_name:ghacks=!" (
CALL :message "ghacks user.js !_version:~2!,!_date!" CALL :message "!_name! !_version:~2!,!_date!"
) ELSE ( ) ELSE (CALL :message "Current user.js version not recognised.")
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."
)
) )
ECHO: ECHO:
IF NOT DEFINED _ua ( IF NOT DEFINED _ua (