From 343f77c5e9fde9190ec7a67f7acb9232e6ee37ee Mon Sep 17 00:00:00 2001 From: claustromaniac <20734810+claustromaniac@users.noreply.github.com> Date: Tue, 16 Jan 2018 10:46:57 -0300 Subject: [PATCH] minor fix on the version check 'IF !_line! GEQ 4 (' is not reliable. --- updater.bat | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/updater.bat b/updater.bat index 540fc25..9e0546c 100644 --- a/updater.bat +++ b/updater.bat @@ -92,15 +92,11 @@ IF NOT EXIST user.js ( IF !_line! EQU 3 (SET _version=%%G) ) :exitloop - IF !_line! GEQ 4 ( + IF NOT "!_name!"=="" ( IF /I NOT "!_name!"=="!_name:ghacks=!" ( - CALL :message "ghacks user.js !_version:~2!,!_date!" - ) ELSE ( - CALL :message "Current user.js version not recognised." - ) - ) ELSE ( - CALL :message "Current user.js version not recognised." - ) + CALL :message "!_name! !_version:~2!,!_date!" + ) ELSE (CALL :message "Current user.js version not recognised.") + ) ELSE (CALL :message "Current user.js version not recognised.") ) ECHO: IF NOT DEFINED _ua (