This repository was archived by the owner on Apr 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments