-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add retry to .sh script #130
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that we have a proper retry functionality, we may also reconsider curl
and wget
options. They also have retry functionality themselves that works for connection and I wonder if we still need 20 retries with 2 sec of delay there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if the user should wait if wget/curl is not installed - I think exit immediately is a better way so the user can install the tool and try again.
src/dotnet-install.sh
Outdated
elif machine_has "wget"; then | ||
downloadwget "$remote_path" "$out_path" || failed=true | ||
else | ||
failed = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably we don't need to retry in this case
Delivers #95