Skip to content
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

feat: Improve install script with error handling and robustness #621

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kalidyasin
Copy link

Key Improvements:

1, Error Handling:

  • set -e stops execution on errors.
  • Checks for failed version fetch or download.
  • Verifies extraction success.

2, Robust Version Parsing:

  • Uses grep -oP to extract the tag from GitHub’s API (still avoids jq dependency).

3, User Feedback:

  • Prints progress messages and final installation path.

4, Directory Creation:

  • Explicitly creates DIR with mkdir -p to avoid issues.

- Add error checking for failed downloads/API requests using set -e
- Use proper GitHub API parsing instead of fragile sed extraction
- Better architecture/OS detection and mapping
- Add user feedback messages and progress reporting
- Ensure target directory creation before installation
- Verify successful extraction before installation
This enhances reliability, handles edge cases better, and improves the
user experience during installation/updates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant