mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-25 17:45:36 +00:00
Reorder shell config file checks.
This commit is contained in:
1 parent
ba01976151
commit
90dc1f6cf8
1 file changed
+6
-5
+6
-5
@@ -84,14 +84,15 @@ export PATH="$ORIGINAL_PATH"
|
||||
if ! which "narwhal"; then
|
||||
|
||||
SHELL_CONFIG=""
|
||||
if [ -f "$HOME/.profile" ]; then
|
||||
SHELL_CONFIG="$HOME/.profile"
|
||||
elif [ -f "$HOME/.bashrc" ]; then
|
||||
SHELL_CONFIG="$HOME/.bashrc"
|
||||
elif [ -f "$HOME/.bash_profile" ]; then
|
||||
# use order outlined by http://hayne.net/MacDev/Notes/unixFAQ.html#shellStartup
|
||||
if [ -f "$HOME/.bash_profile" ]; then
|
||||
SHELL_CONFIG="$HOME/.bash_profile"
|
||||
elif [ -f "$HOME/.bash_login" ]; then
|
||||
SHELL_CONFIG="$HOME/.bash_login"
|
||||
elif [ -f "$HOME/.profile" ]; then
|
||||
SHELL_CONFIG="$HOME/.profile"
|
||||
elif [ -f "$HOME/.bashrc" ]; then
|
||||
SHELL_CONFIG="$HOME/.bashrc"
|
||||
fi
|
||||
|
||||
EXPORT_PATH_STRING="export PATH=\"$INSTALL_DIRECTORY/bin:\$PATH\""
|
||||
|
||||
Reference in new issue
Block a user