diff --git a/install.sh b/install.sh index 1733728..6bff9da 100755 --- a/install.sh +++ b/install.sh @@ -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