Fixes version parsing and display in updater.bat (#1914)

This commit is a (partial) backport of HorlogeSkynet/thunderbird-user.js#59
This commit is contained in:
Samuel FORESTIER
2026-08-20 05:10:01 +02:00
committed by GitHub
parent 8fe9905c35
commit 450f476a80
+2 -2
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.")
)