File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -74,8 +74,13 @@ parsedrelease=$(echo "$PARAM_RELEASE" | tr '[:upper:]' '[:lower:]')
7474if [[ " $parsedrelease " = " latest" ]]; then
7575 mpmrelease=$( stream https://ssd.mathworks.com/supportfiles/ci/matlab-release/v0/latest)
7676elif [[ " $parsedrelease " = " latest-including-prerelease" ]]; then
77- mpmrelease=$( stream https://ssd.mathworks.com/supportfiles/ci/matlab-release/v0/latest-including-prerelease)
78- releasestatus=" --release-status=Prerelease"
77+ fetched=$( stream https://ssd.mathworks.com/supportfiles/ci/matlab-release/v0/latest-including-prerelease)
78+ if [[ " $fetched " == * prerelease ]]; then
79+ mpmrelease=" ${fetched% prerelease} "
80+ releasestatus=" --release-status=Prerelease"
81+ else
82+ mpmrelease=" $fetched "
83+ fi
7984else
8085 mpmrelease=" $parsedrelease "
8186fi
@@ -152,4 +157,4 @@ echo 'export PATH="'$rootdir'/bin:'$batchdir':$PATH"' >> $BASH_ENV
152157# add MATLAB Runtime to path for windows
153158if [[ " $mwarch " = " win64" ]]; then
154159 echo ' export PATH="' $rootdir ' /runtime/' $mwarch ' :$PATH"' >> $BASH_ENV
155- fi
160+ fi
You can’t perform that action at this time.
0 commit comments