Skip to content

Commit 35e5fcc

Browse files
committed
project: Fix get dependencies batch file to only select lib archives.
1 parent b9b35da commit 35e5fcc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

SMP/project_get_dependencies.bat

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,12 @@ FOR /F "tokens=* USEBACKQ" %%F IN (`TYPE latest.json ^| FINDSTR /B "tag_name"`)
112112
FOR /F "tokens=2 delims=: " %%F in ("%TAG%") DO SET TAG=%%F
113113
IF "%TAG%"=="" ( ECHO Failed getting latest %REPONAME% release tag information & EXIT /B 1 )
114114
REM 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
118121
IF "%LIBNAME%"=="" ( ECHO Failed getting latest %REPONAME% release name information & EXIT /B 1 )
119122
DEL /F /Q latest.json
120123
REM Get the download location for the required tag

0 commit comments

Comments
 (0)