You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/dotnet/scripts/vendor/dotnet-install.sh
+17-88Lines changed: 17 additions & 88 deletions
Original file line number
Diff line number
Diff line change
@@ -477,7 +477,7 @@ get_normalized_quality() {
477
477
local quality="$(to_lowercase "$1")"
478
478
if [ !-z"$quality" ];then
479
479
case"$quality"in
480
-
daily | signed | validated | preview)
480
+
daily | preview)
481
481
echo"$quality"
482
482
return 0
483
483
;;
@@ -486,7 +486,7 @@ get_normalized_quality() {
486
486
return 0
487
487
;;
488
488
*)
489
-
say_err "'$quality' is not a supported value for --quality option. Supported values are: daily, signed, validated, preview, ga. If you think this is a bug, report it at https://github.com/dotnet/install-scripts/issues."
489
+
say_err "'$quality' is not a supported value for --quality option. Supported values are: daily, preview, ga. If you think this is a bug, report it at https://github.com/dotnet/install-scripts/issues."
# Regression in curl causes curl with --retry to return a 0 exit code even when it fails to download a file - https://github.com/curl/curl/issues/17554
curl_exit_code=$(echo "$curl_output"| sed 's/curl: (\([0-9]*\)).*/\1/')
1212
+
fi
1213
+
1208
1214
if [ $curl_exit_code-gt 0 ];then
1209
1215
download_error_msg="Unable to download $remote_path."
1210
1216
# Check for curl timeout codes
@@ -1272,61 +1278,6 @@ downloadwget() {
1272
1278
return 0
1273
1279
}
1274
1280
1275
-
extract_stem() {
1276
-
local url="$1"
1277
-
# extract the protocol
1278
-
proto="$(echo $1| grep :// | sed -e's,^\(.*://\).*,\1,g')"
1279
-
# remove the protocol
1280
-
url="${1/$proto/}"
1281
-
# extract the path (if any) - since we know all of our feeds have a first path segment, we can skip the first one. otherwise we'd use -f2- to get the full path
echo" --azure-feed,-AzureFeed For internal use only."
1892
1824
echo" Allows using a different storage to download SDK archives from."
1893
-
echo" This parameter is only used if --no-cdn is false."
1894
1825
echo" --uncached-feed,-UncachedFeed For internal use only."
1895
1826
echo" Allows using a different storage to download SDK archives from."
1896
-
echo" This parameter is only used if --no-cdn is true."
1897
1827
echo" --skip-non-versioned-files Skips non-versioned files if they already exist, such as the dotnet executable."
1898
1828
echo" -SkipNonVersionedFiles"
1899
-
echo" --no-cdn,-NoCdn Disable downloading from the Azure CDN, and use the uncached feed directly."
1900
1829
echo" --jsonfile <JSONFILE> Determines the SDK version from a user specified global.json file."
1901
1830
echo" Note: global.json must have a value for 'SDK:Version'"
1902
1831
echo" --keep-zip,-KeepZip If set, downloaded file is kept."
@@ -1956,4 +1885,4 @@ fi
1956
1885
1957
1886
say "Note that the script does not resolve dependencies during installation."
1958
1887
say "To check the list of dependencies, go to https://learn.microsoft.com/dotnet/core/install, select your operating system and check the \"Dependencies\" section."
0 commit comments