Fixes version parsing and display in updater.bat

This commit is a (partial) backport of HorlogeSkynet/thunderbird-user.js#59
This commit is contained in:
Samuel FORESTIER 2024-11-09 15:08:13 +00:00 committed by GitHub
parent eae5762d29
commit d4c946050b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -102,7 +102,7 @@ IF NOT EXIST user.js (
IF !_line! GEQ 4 (GOTO exitloop)
IF !_line! EQU 1 (SET _name=%%H)
IF !_line! EQU 2 (SET _date=%%H)
IF !_line! EQU 3 (SET _version=%%G)
IF !_line! EQU 3 (SET _version=%%H)
)
:exitloop
IF NOT "!_name!"=="" (
@ -110,7 +110,7 @@ IF NOT EXIST user.js (
IF /I NOT "!_name!"=="!_name:ghacks=!" SET _tempvar=1
IF /I NOT "!_name!"=="!_name:arkenfox=!" SET _tempvar=1
IF !_tempvar! EQU 1 (
CALL :message "!_name! !_version:~2!,!_date!"
CALL :message "!_name! !_version:~1!,!_date!"
) ELSE (CALL :message "Current user.js version not recognised.")
) ELSE (CALL :message "Current user.js version not recognised.")
)