mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
Add existence test for installed profile.d bash setup.
This commit is contained in:
parent
34419c3eae
commit
39f4c1b6fb
@ -60,7 +60,9 @@ if [ -d "/etc/profile.d" ]; then
|
||||
echo "Adding the /etc/profile.d/autojump.bash to your .bashrc"
|
||||
echo "" >> ~/.bashrc
|
||||
echo "# Added by autojump install.sh" >> ~/.bashrc
|
||||
echo "source /etc/profile.d/autojump.bash" >> ~/.bashrc
|
||||
echo "if [ -f /etc/profile.d/autojump.bash ]; then" >> ~/.bashrc
|
||||
echo " source /etc/profile.d/autojump.bash" >> ~/.bashrc
|
||||
echo "fi" >> ~/.bashrc
|
||||
fi
|
||||
echo "Done!"
|
||||
echo
|
||||
|
Loading…
Reference in New Issue
Block a user