Skip to content

Commit e4f6983

Browse files
committed
Addressing PR feedback
1 parent c9e5e27 commit e4f6983

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/dotnet-install.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -753,15 +753,17 @@ download() {
753753
elif machine_has "wget"; then
754754
downloadwget "$remote_path" "$out_path" || failed=true
755755
else
756-
failed = true
756+
unset http_code
757+
download_error_msg="Missing dependency: neither curl nor wget was found."
758+
break
757759
fi
758760
759761
if [ "$failed" = false ] || [ $attempts -ge 3 ] || { [ ! -z $http_code ] && [ $http_code = "404" ]; }; then
760762
break
761763
fi
762764
763-
764-
say "Trying for the $((attempts+1))rd time in $((attempts*10)) seconds."
765+
say "Download attempt #$attempts has failed: $http_code $download_error_msg"
766+
say "Attempt #$((attempts+1)) will start in $((attempts*10)) seconds."
765767
sleep $((attempts*20))
766768
done
767769

0 commit comments

Comments
 (0)