[ubuntu] installing the latest .NET sdk patch version for every feature version (#3550)

* installing the latest patch version for every feature version

* simplify versions computing

* fix space

Co-authored-by: Sergey Dolin <v-sedoli@micorosoft.com>
This commit is contained in:
Sergey Dolin
2021-06-10 13:17:30 +05:00
committed by GitHub
parent ff4ba2e725
commit a9d832d671

View File

@@ -36,7 +36,8 @@ for version in ${DOTNET_VERSIONS[@]}; do
rm ./${version}.json
done
sortedSdks=$(echo ${sdks[@]} | tr ' ' '\n' | grep -v preview | grep -v rc | grep -v display | cut -d\" -f2 | sort -u -r)
sortedSdks=$(echo ${sdks[@]} | tr ' ' '\n' | grep -v preview | grep -v rc | grep -v display | cut -d\" -f2 | sort -r | uniq -w 5)
extract_dotnet_sdk() {
local ARCHIVE_NAME="$1"
set -e
@@ -66,4 +67,4 @@ setEtcEnvironmentVariable DOTNET_NOLOGO 1
setEtcEnvironmentVariable DOTNET_MULTILEVEL_LOOKUP 0
prependEtcEnvironmentPath '$HOME/.dotnet/tools'
invoke_tests "DotnetSDK"
invoke_tests "DotnetSDK"