Fixing an OSx break: "osname: unbound variable"
This commit is contained in:
parent
b48b7d2ea0
commit
a53424cc04
1 changed files with 4 additions and 13 deletions
15
scripts/obtain/dotnet-install.sh
vendored
15
scripts/obtain/dotnet-install.sh
vendored
|
@ -424,21 +424,12 @@ construct_alt_download_link() {
|
||||||
distro_specific_osname=$(get_distro_specific_os_name) || return 1
|
distro_specific_osname=$(get_distro_specific_os_name) || return 1
|
||||||
|
|
||||||
local alt_download_link=null
|
local alt_download_link=null
|
||||||
if [ "$(uname)" = "Linux" ]; then
|
if [ "$shared_runtime" = true ]; then
|
||||||
if [ "$shared_runtime" = true ]; then
|
alt_download_link="$azure_feed/Runtime/$specific_version/dotnet-$distro_specific_osname-$normalized_architecture.$specific_version.tar.gz"
|
||||||
alt_download_link="$azure_feed/Runtime/$specific_version/dotnet-$distro_specific_osname-$normalized_architecture.$specific_version.tar.gz"
|
|
||||||
else
|
|
||||||
alt_download_link="$azure_feed/Sdk/$specific_version/dotnet-dev-$distro_specific_osname-$normalized_architecture.$specific_version.tar.gz"
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
if [ "$shared_runtime" = true ]; then
|
alt_download_link="$azure_feed/Sdk/$specific_version/dotnet-dev-$distro_specific_osname-$normalized_architecture.$specific_version.tar.gz"
|
||||||
alt_download_link="$azure_feed/Runtime/$specific_version/dotnet-$osname-$normalized_architecture.$specific_version.tar.gz"
|
|
||||||
else
|
|
||||||
alt_download_link="$azure_feed/Sdk/$specific_version/dotnet-dev-$osname-$normalized_architecture.$specific_version.tar.gz"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo "$alt_download_link"
|
echo "$alt_download_link"
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue