Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit 1fe96fd

Browse files
author
John Beisner
committed
Changes per additional manual testing on ubuntu-x64
1 parent 283bff5 commit 1fe96fd

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

scripts/obtain/dotnet-install.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -626,15 +626,17 @@ install_dotnet() {
626626

627627
say "Downloading $download_link"
628628
download "$download_link" $zip_path
629+
say_verbose "Downloaded file exists and readable? $(if [ -r $zip_path ]; then echo "yes"; else echo "no"; fi)"
629630

630-
# if the download fails, download the alt_download_link
631-
if [ "$(uname)" = "Linux" ] && [ -r $zip_path ]; then
631+
# if the download fails, download the alt_download_link [Linux only]
632+
if [ "$(uname)" = "Linux" ] && [ ! -r $zip_path ]; then
632633
say "Cannot download $download_link"
634+
alt_zip_path=$(mktemp $temporary_file_template)
635+
say_verbose "Alternate zip path: $alt_zip_path"
633636
say "Downloading alternate: $alt_download_link"
634-
download "$alt_download_link" $zip_path
637+
download "$alt_download_link" $alt_zip_path
638+
say_verbose "Downloaded alternate file exists and readable? $(if [ -r $alt_zip_path ]; then echo "yes"; else echo "no"; fi)"
635639
fi
636-
637-
say_verbose "Downloaded file exists and readable? $(if [ -r $zip_path ]; then echo "yes"; else echo "no"; fi)"
638640

639641
say "Extracting zip"
640642
extract_dotnet_package $zip_path $install_root

0 commit comments

Comments
 (0)