We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9e5e27 commit e4f6983Copy full SHA for e4f6983
src/dotnet-install.sh
@@ -753,15 +753,17 @@ download() {
753
elif machine_has "wget"; then
754
downloadwget "$remote_path" "$out_path" || failed=true
755
else
756
- failed = true
+ unset http_code
757
+ download_error_msg="Missing dependency: neither curl nor wget was found."
758
+ break
759
fi
760
761
if [ "$failed" = false ] || [ $attempts -ge 3 ] || { [ ! -z $http_code ] && [ $http_code = "404" ]; }; then
762
break
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."
767
sleep $((attempts*20))
768
done
769
0 commit comments