@@ -489,7 +489,7 @@ get_specific_version_from_version() {
489
489
local json_file=" $5 "
490
490
491
491
if [ -z " $json_file " ]; then
492
- if [[ " $version " == " latest" ]]; then
492
+ if [[ " $version " == " latest" ]]; then
493
493
local version_info
494
494
version_info=" $( get_latest_version_info " $azure_feed " " $channel " " $normalized_architecture " false) " || return 1
495
495
say_verbose " get_specific_version_from_version: version_info=$version_info "
@@ -522,7 +522,7 @@ construct_download_link() {
522
522
local specific_version=" ${4// [$'\t\r\n']} "
523
523
local specific_product_version=" $( get_specific_product_version " $1 " " $4 " ) "
524
524
local osname=" $5 "
525
-
525
+
526
526
local download_link=null
527
527
if [[ " $runtime " == " dotnet" ]]; then
528
528
download_link=" $azure_feed /Runtime/$specific_version /dotnet-runtime-$specific_product_version -$osname -$normalized_architecture .tar.gz"
@@ -542,7 +542,7 @@ construct_download_link() {
542
542
# azure_feed - $1
543
543
# specific_version - $2
544
544
get_specific_product_version () {
545
- # If we find a 'productVersion.txt' at the root of any folder, we'll use its contents
545
+ # If we find a 'productVersion.txt' at the root of any folder, we'll use its contents
546
546
# to resolve the version of what's in the folder, superseding the specified version.
547
547
eval $invocation
548
548
@@ -905,10 +905,10 @@ install_dotnet() {
905
905
906
906
# The download function will set variables $http_code and $download_error_msg in case of failure.
907
907
download " $download_link " " $zip_path " 2>&1 || download_failed=true
908
- primary_path_http_code=" $http_code " ; primary_path_download_error_msg=" $download_error_msg "
909
908
910
909
# if the download fails, download the legacy_download_link
911
910
if [ " $download_failed " = true ]; then
911
+ primary_path_http_code=" $http_code " ; primary_path_download_error_msg=" $download_error_msg "
912
912
case $primary_path_http_code in
913
913
404)
914
914
say " The resource at $download_link is not available."
@@ -928,9 +928,9 @@ install_dotnet() {
928
928
929
929
# The download function will set variables $http_code and $download_error_msg in case of failure.
930
930
download " $download_link " " $zip_path " 2>&1 || download_failed=true
931
- legacy_path_http_code=" $http_code " ; legacy_path_download_error_msg=" $download_error_msg "
932
931
933
932
if [ " $download_failed " = true ]; then
933
+ legacy_path_http_code=" $http_code " ; legacy_path_download_error_msg=" $download_error_msg "
934
934
case $legacy_path_http_code in
935
935
404)
936
936
say " The resource at $download_link is not available."
@@ -1132,10 +1132,10 @@ do
1132
1132
echo " --arch,-Architecture,-Arch"
1133
1133
echo " Possible values: x64, arm, and arm64"
1134
1134
echo " --os <system> Specifies operating system to be used when selecting the installer."
1135
- echo " Overrides the OS determination approach used by the script. Supported values: osx, linux, linux-musl, freebsd, rhel.6."
1136
- echo " In case any other value is provided, the platform will be determined by the script based on machine configuration."
1135
+ echo " Overrides the OS determination approach used by the script. Supported values: osx, linux, linux-musl, freebsd, rhel.6."
1136
+ echo " In case any other value is provided, the platform will be determined by the script based on machine configuration."
1137
1137
echo " Not supported for legacy links. Use --runtime-id to specify platform for legacy links."
1138
- echo " Refer to: https://aka.ms/dotnet-os-lifecycle for more information."
1138
+ echo " Refer to: https://aka.ms/dotnet-os-lifecycle for more information."
1139
1139
echo " --runtime <RUNTIME> Installs a shared runtime only, without the SDK."
1140
1140
echo " -Runtime"
1141
1141
echo " Possible values:"
1160
1160
echo " Installs just the shared runtime bits, not the entire SDK."
1161
1161
echo " --runtime-id Installs the .NET Tools for the given platform (use linux-x64 for portable linux)."
1162
1162
echo " -RuntimeId" The parameter is obsolete and may be removed in a future version of this script. Should be used only for versions below 2.1.
1163
- echo " For primary links to override OS or/and architecture, use --os and --architecture option instead."
1163
+ echo " For primary links to override OS or/and architecture, use --os and --architecture option instead."
1164
1164
echo " "
1165
1165
echo " Install Location:"
1166
1166
echo " Location is chosen in following order:"
@@ -1197,7 +1197,7 @@ if [ "$dry_run" = true ]; then
1197
1197
if [ " $valid_legacy_download_link " = true ]; then
1198
1198
say " Legacy named payload URL: $legacy_download_link "
1199
1199
fi
1200
- repeatable_command=" ./$script_name --version " \" " $specific_version " \" " --install-dir " \" " $install_root " \" " --architecture " \" " $normalized_architecture " \" " --os " \" " $normalized_os " \" " "
1200
+ repeatable_command=" ./$script_name --version " \" " $specific_version " \" " --install-dir " \" " $install_root " \" " --architecture " \" " $normalized_architecture " \" " --os " \" " $normalized_os " \" " "
1201
1201
if [[ " $runtime " == " dotnet" ]]; then
1202
1202
repeatable_command+=" --runtime " \" " dotnet" \" " "
1203
1203
elif [[ " $runtime " == " aspnetcore" ]]; then
0 commit comments