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

install.sh: Improve default $PREFIX behaviour #372

Merged
merged 6 commits into from Dec 6, 2022

Conversation

nhooyr
Copy link
Contributor

@nhooyr nhooyr commented Dec 6, 2022

As before we default to /usr/local but now we switch to ~/.local if /usr/local if not accessible instead of prompting for sudo. Instead of having an exception for macOS/arm64.

Of course if a user wants to install in /usr/local anyway, they can still pass --prefix /usr/local to force installation into /usr/local and prompt for sudo.

@nhooyr nhooyr requested review from alixander and a team December 6, 2022 05:54
docs/INSTALL.md Outdated Show resolved Hide resolved
As before we default to /usr/local but now we switch to ~/.local if
/usr/local if not accessible instead of prompting for sudo. Instead
of having an exception for macOS/arm64.

Of course if a user wants to install in /usr/local anyway, they can
still pass --prefix /usr/local to force installation into /usr/local
and prompt for sudo.
@nhooyr nhooyr enabled auto-merge December 6, 2022 07:24
@nhooyr nhooyr merged commit 030f954 into terrastruct:master Dec 6, 2022
@nhooyr nhooyr deleted the fix-sudo-86ee branch December 6, 2022 08:22
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.

None yet

2 participants