From ba0809214be7bd66a26465734c9f77a951e73db8 Mon Sep 17 00:00:00 2001 From: Leonid Lapshin Date: Mon, 28 Dec 2020 11:26:28 +0300 Subject: [PATCH] [ubuntu] Changed dotnet core sdk unpacking stage (#2297) Co-authored-by: Leonid Lapshin --- 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 b22306791..e8542aace 100644 --- a/images/linux/scripts/installers/dotnetcore-sdk.sh +++ b/images/linux/scripts/installers/dotnetcore-sdk.sh @@ -19,7 +19,6 @@ mksamples() sample=$2 mkdir "$sdk" cd "$sdk" || exit - dotnet help dotnet new globaljson --sdk-version "$sdk" dotnet new "$sample" dotnet restore @@ -74,7 +73,9 @@ parallel --jobs 0 --halt soon,fail=1 \ 'url="https://dotnetcli.blob.core.windows.net/dotnet/Sdk/{}/dotnet-sdk-{}-linux-x64.tar.gz"; \ download_with_retries $url' ::: "${sortedSdks[@]}" -find . -name "*.tar.gz" | parallel --halt soon,fail=1 'extract_dotnet_sdk {}' +parallel --jobs 0 --halt soon,fail=1 \ + 'name="./dotnet-sdk-{}-linux-x64.tar.gz"; \ + extract_dotnet_sdk $name' ::: "${sortedSdks[@]}" # Smoke test each SDK for sdk in $sortedSdks; do