Repository navigation
Fix install failure when /usr/local/bin does not exist - #2
Merged
Merged
Conversation
On fresh Apple Silicon Macs, /usr/local/bin is often missing because Homebrew installs to /opt/homebrew/bin instead. The install script downloaded the binary successfully but mv failed with 'No such file or directory' when trying to move into the non-existent directory. Create the install directory before moving the binary, and improve the error message when installation still fails. Co-authored-by: Tsotne Gvadzabia <tsotimus@users.noreply.github.com>
Install to /opt/homebrew/bin on arm64 and /usr/local/bin on Intel, matching Homebrew's conventions so quickforge lands on PATH for most Mac setups without extra configuration. Co-authored-by: Tsotne Gvadzabia <tsotimus@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Users on fresh Apple Silicon Macs hit this error during install:
The download step succeeds, but the move fails because the install directory doesn't exist yet.
Fix
/opt/homebrew/bin/usr/local/binmkdir -pbefore moving the binaryThis matches how Homebrew itself is laid out, so
quickforgeshould be on PATH for most Mac setups (especially after QuickForge installs Homebrew).Workaround (until merged)
sudo mkdir -p /opt/homebrew/bin curl -fsSL https://raw.githubusercontent.com/tsotimus/quick-forge/main/install.sh | bash