1
0
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:
Chad Netzer 2011-04-26 12:22:35 -07:00
parent 34419c3eae
commit 39f4c1b6fb

View File

@ -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