File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -112,9 +112,12 @@ FOR /F "tokens=* USEBACKQ" %%F IN (`TYPE latest.json ^| FINDSTR /B "tag_name"`)
112112FOR /F " tokens=2 delims=: " %%F in (" %TAG% " ) DO SET TAG = %%F
113113IF " %TAG% " == " " ( ECHO Failed getting latest %REPONAME% release tag information & EXIT /B 1 )
114114REM Get download name of latest release
115- FOR /F " tokens=* USEBACKQ" %%F IN (`TYPE latest.json ^ | FINDSTR " name=" `) DO SET LIBNAME = %%F
116- SET LIBNAME = %LIBNAME:*name =%
117- FOR /F " tokens=1 delims=_" %%F in (" %LIBNAME:~1 % " ) DO SET LIBNAME = %%F
115+ SET LIBNAME =
116+ FOR /F " tokens=* USEBACKQ" %%F IN (`TYPE latest.json ^ | FINDSTR " name=" `) DO ( SET TEMPF = %%F
117+ SET TEMPF = !TEMPF:*name =!
118+ IF " !TEMPF:~1 ,3 ! " == " lib" ( SET LIBNAME = !TEMPF:~1 ! )
119+ )
120+ FOR /F " tokens=1 delims=_" %%F in (" %LIBNAME% " ) DO SET LIBNAME = %%F
118121IF " %LIBNAME% " == " " ( ECHO Failed getting latest %REPONAME% release name information & EXIT /B 1 )
119122DEL /F /Q latest.json
120123REM Get the download location for the required tag
You can’t perform that action at this time.
0 commit comments