Skip to content

Improve install script robustness #29

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

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

Conversation

gnanesh-16
Copy link

Installation Script Enhancements for Shell-AI

This document details the significant improvements made to the installation scripts for the Shell-AI tool, enhancing their robustness and user-friendliness across various platforms.

Context

The install script previously worked inconsistently, especially on managed machines with multiple users. This led to challenges in ensuring a smooth installation experience.

Task

The script has been updated to work consistently and intuitively across more Linux distributions and setups, drawing on examples from existing install.sh scripts.

Overview

The installation scripts are designed to facilitate seamless setup for users on different operating systems. They address potential challenges and ensure a smooth installation experience.

Key Features

  • Cross-Platform Compatibility: The scripts automatically detect the operating system and architecture to provide the appropriate installation method.

  • User-Level Installation: By default, the tool installs in ~/.local/bin for regular users, with the option to install in /usr/local/bin if executed with root privileges.

  • Essential Tool Checks: The scripts verify the presence of required tools, specifically curl and unzip, and gracefully exit with informative error messages if they are missing.

  • Dynamic Architecture Detection: Utilizing the uname -m command, the scripts detect the system architecture to ensure the correct binary version is downloaded.

  • Robust Error Handling: The scripts include checks for download and extraction failures, guiding users to troubleshoot issues effectively.

  • Automatic PATH Management: If the installation directory is not already included in the user’s PATH, the script appends it, ensuring easy access to the tool after installation.

Thank you,

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