Skip to content

Commit d4c9460

Browse files
Fixes version parsing and display in updater.bat
This commit is a (partial) backport of HorlogeSkynet/thunderbird-user.js#59
1 parent eae5762 commit d4c9460

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

updater.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@ IF NOT EXIST user.js (
102102
IF !_line! GEQ 4 (GOTO exitloop)
103103
IF !_line! EQU 1 (SET _name=%%H)
104104
IF !_line! EQU 2 (SET _date=%%H)
105-
IF !_line! EQU 3 (SET _version=%%G)
105+
IF !_line! EQU 3 (SET _version=%%H)
106106
)
107107
:exitloop
108108
IF NOT "!_name!"=="" (
109109
SET "_tempvar="
110110
IF /I NOT "!_name!"=="!_name:ghacks=!" SET _tempvar=1
111111
IF /I NOT "!_name!"=="!_name:arkenfox=!" SET _tempvar=1
112112
IF !_tempvar! EQU 1 (
113-
CALL :message "!_name! !_version:~2!,!_date!"
113+
CALL :message "!_name! !_version:~1!,!_date!"
114114
) ELSE (CALL :message "Current user.js version not recognised.")
115115
) ELSE (CALL :message "Current user.js version not recognised.")
116116
)

0 commit comments

Comments
 (0)