mirror of
https://github.com/arkenfox/user.js.git
synced 2026-08-27 05:17:39 +02:00
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:
+2
-2
@@ -102,7 +102,7 @@ IF NOT EXIST user.js (
|
|||||||
IF !_line! GEQ 4 (GOTO exitloop)
|
IF !_line! GEQ 4 (GOTO exitloop)
|
||||||
IF !_line! EQU 1 (SET _name=%%H)
|
IF !_line! EQU 1 (SET _name=%%H)
|
||||||
IF !_line! EQU 2 (SET _date=%%H)
|
IF !_line! EQU 2 (SET _date=%%H)
|
||||||
IF !_line! EQU 3 (SET _version=%%G)
|
IF !_line! EQU 3 (SET _version=%%H)
|
||||||
)
|
)
|
||||||
:exitloop
|
:exitloop
|
||||||
IF NOT "!_name!"=="" (
|
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:ghacks=!" SET _tempvar=1
|
||||||
IF /I NOT "!_name!"=="!_name:arkenfox=!" SET _tempvar=1
|
IF /I NOT "!_name!"=="!_name:arkenfox=!" SET _tempvar=1
|
||||||
IF !_tempvar! EQU 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.")
|
||||||
) ELSE (CALL :message "Current user.js version not recognised.")
|
) ELSE (CALL :message "Current user.js version not recognised.")
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user