From a9d832d671ca99f3a518c6da8306c860df34cd29 Mon Sep 17 00:00:00 2001 From: Sergey Dolin Date: Thu, 10 Jun 2021 13:17:30 +0500 Subject: [PATCH] [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 --- images/linux/scripts/installers/dotnetcore-sdk.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/images/linux/scripts/installers/dotnetcore-sdk.sh b/images/linux/scripts/installers/dotnetcore-sdk.sh index b2b6d0e60..bcbcde99c 100644 --- a/images/linux/scripts/installers/dotnetcore-sdk.sh +++ b/images/linux/scripts/installers/dotnetcore-sdk.sh @@ -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" \ No newline at end of file +invoke_tests "DotnetSDK"