Skip to content

Conversation

ziflex
Copy link
Member

@ziflex ziflex commented May 7, 2025

This pull request includes updates to the install.sh script to improve usability and maintainability. The changes include simplifying variable definitions, refining profile detection logic, and enhancing feedback during the PATH update process.

Improvements to variable definitions:

  • Simplified the fullAppName variable by replacing the dynamic string manipulation with a static value, changing it from a computed string to "Ferret CLI". (install.sh, install.shL11-R11)

Refinements to profile detection logic:

  • Updated a comment in the detect_profile function to clarify that the script avoids modifying the user's profile if explicitly requested. (install.sh, install.shL77-R77)
  • Reordered the profile file search sequence in the detect_profile function to prioritize .zshrc over .profile. (install.sh, install.shL99-R99)

Enhancements to PATH update process:

  • Modified the update_profile function to handle cases where no profile is detected, providing a clear message and skipping the PATH update if necessary. Additionally, added feedback to inform users whether the specified location is already in the PATH. (install.sh, install.shL116-R124)

@ziflex ziflex requested a review from Copilot May 7, 2025 17:14
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request updates the installer script to improve its usability and maintainability.

  • Simplifies variable definitions by replacing dynamic app name manipulation with a static string.
  • Refines profile detection logic by reordering the search sequence and clarifying comments.
  • Enhances the PATH update process with clearer feedback, including handling the case where no profile is detected.

@ziflex ziflex merged commit b7902f3 into master May 7, 2025
7 checks passed
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