Skip to content

Some improvements to install.sh #2738

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

Merged
merged 3 commits into from
Oct 25, 2024
Merged

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Oct 25, 2024

Please check if the PR fulfills these requirements

See how to contribute

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)
  • configuration.schema.json updated if new parameters are added.

What kind of change does this PR introduce?

  • If an error occurs during download with curl the error reason is now displayed (this is the effect of the added --show-error flag to be used in conjunction with --silent)
  • Temporary files are now removed after use
  • Optimized code

What is the current behavior?

If curl fails to download, a generic error is displayed.

What is the new behavior?

If curl fails to download, the specific error that cause the download failure is displayed.

Does this PR introduce a breaking change, and is titled accordingly?

No.

Other information

Should help with #2667

This change will show more information when the download fails.

  -S, --show-error
      When used with -s, --silent, it makes curl show an error message if it fails.
@cmaglie cmaglie self-assigned this Oct 25, 2024
@cmaglie cmaglie added type: enhancement Proposed improvement topic: infrastructure Related to project infrastructure labels Oct 25, 2024
@cmaglie cmaglie changed the title Some improvements in install.sh Some improvements to install.sh Oct 25, 2024
@cmaglie cmaglie merged commit a008ef0 into arduino:master Oct 25, 2024
1 check passed
@cmaglie cmaglie deleted the install.sh_curl branch October 25, 2024 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure Related to project infrastructure type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants