Hi folks,
I'm creating a distribution package for my app. It's a command-line app, so I felt the best place to install it was /usr/local/bin. Unfortunately, that's not in users' PATH by default unless they've installed XCode (as I have).
What's the easiest way to get the distribution to automatically add /usr/local/bin to the system PATH? Should I use a bash script?
I don't just want to append a line to /etc/profile, as the user might already have it set. And there are various places where that might happen.
Thanks,
Lyle
I'm creating a distribution package for my app. It's a command-line app, so I felt the best place to install it was /usr/local/bin. Unfortunately, that's not in users' PATH by default unless they've installed XCode (as I have).
What's the easiest way to get the distribution to automatically add /usr/local/bin to the system PATH? Should I use a bash script?
I don't just want to append a line to /etc/profile, as the user might already have it set. And there are various places where that might happen.
Thanks,
Lyle