-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add message to warn users about default install path #392
Add message to warn users about default install path #392
Conversation
# Mac OSX | ||
echo "Since MacOS Ventura (13.X), the default install path is owned by 'root'." | ||
echo "You can fix this by either" | ||
echo " 1. Running 'sudo chown -R $(id -un):$(id -gn) $TGF_PATH'." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The $(...) parts are evaluated during the display of the message, comments?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe @dotboris can recommend something from his bag of tricks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#bash 🧙♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly it's fine. That's how you do it. I know that there's a $USER
variable you could rely on but I feel that your implementation would work in more cases.
# Mac OSX | ||
echo "Since MacOS Ventura (13.X), the default install path is owned by 'root'." | ||
echo "You can fix this by either" | ||
echo " 1. Running 'sudo chown -R $(id -un):$(id -gn) $TGF_PATH'." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly it's fine. That's how you do it. I know that there's a $USER
variable you could rely on but I feel that your implementation would work in more cases.
Starting with MacOS Ventura (13.X), the
/usr/local/bin
folder is owned by root on new installs.This aims to clarify to users with new macs what is going on and guide them when the installer fails.
This PR adds:
This PR doesn't add: