Fix install-dotnet.sh to deal with trailing newline
This commit is contained in:
parent
d9d6cbd6f1
commit
0bfd94e998
1 changed files with 2 additions and 2 deletions
4
scripts/obtain/dotnet-install.sh
vendored
4
scripts/obtain/dotnet-install.sh
vendored
|
@ -245,7 +245,7 @@ is_dotnet_package_installed() {
|
||||||
|
|
||||||
local install_root=$1
|
local install_root=$1
|
||||||
local relative_path_to_package=$2
|
local relative_path_to_package=$2
|
||||||
local specific_version=$3
|
local specific_version=${3//[$'\t\r\n']}
|
||||||
|
|
||||||
local dotnet_package_path=$(combine_paths $(combine_paths $install_root $relative_path_to_package) $specific_version)
|
local dotnet_package_path=$(combine_paths $(combine_paths $install_root $relative_path_to_package) $specific_version)
|
||||||
say_verbose "is_dotnet_package_installed: dotnet_package_path=$dotnet_package_path"
|
say_verbose "is_dotnet_package_installed: dotnet_package_path=$dotnet_package_path"
|
||||||
|
@ -343,7 +343,7 @@ construct_download_link() {
|
||||||
local azure_feed=$1
|
local azure_feed=$1
|
||||||
local azure_channel=$2
|
local azure_channel=$2
|
||||||
local normalized_architecture=$3
|
local normalized_architecture=$3
|
||||||
local specific_version=$4
|
local specific_version=${4//[$'\t\r\n']}
|
||||||
|
|
||||||
local osname=$(get_current_os_name)
|
local osname=$(get_current_os_name)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue