Skip to content

fix: install script location default & parsing #2681

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 3 commits into
base: main
Choose a base branch
from

Conversation

ThatOneCalculator
Copy link

Why this should be merged

  • Sets default location to ~/.local/bin (standard location on Linux, macOS, etc)

  • Removes trailing slash from install path (prevents cases like install.sh -b /usr/local/bin/ producing ava-labs/avalanche-cli info installed /usr/local/bin//avalanche)

How this works

  • Sets BINDIR to itself but with trailing slash removed if it exists
  • Then sets BINDIR to default (~/.local/bin) if it's an empty string

How this was tested

  • Ran install script

How is this documented

  • Code comments

- sets default location to `~/.local/bin` (standard location on Linux, macOS, etc)

- removes trailing slash from install path (prevents cases like `install.sh -b /usr/local/bin/` producing `ava-labs/avalanche-cli info installed /usr/local/bin//avalanche`)

Signed-off-by: Kainoa Kanter <[email protected]>
@ThatOneCalculator ThatOneCalculator requested a review from a team as a code owner March 12, 2025 22:42
@ThatOneCalculator ThatOneCalculator changed the title fix: install script location fix: install script location default & parsing Mar 12, 2025
ThatOneCalculator and others added 2 commits April 13, 2025 19:30
this is a non-standard location and will not be recognized in $PATH on pretty much any machine, but is kept here for backwards compatibility and *apparently* being 'easy to remember or locate'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog 🗄️
Development

Successfully merging this pull request may close these issues.

2 participants