OS X's default shell doesn't like "echo -e foo" - it actually outputs "-e foo".

This commit is contained in:
Nathan Broadbent
2011-10-20 19:38:20 +08:00
parent 4d5126731a
commit c2b7ef5960

View File

@@ -4,7 +4,8 @@ exec_string='[[ -s "$HOME/.scm_breeze/scm_breeze.sh" ]] && . "$HOME/.scm_breeze/
# Add line to bashrc and zshrc if not already present.
for rc in bashrc zshrc; do
if [[ -s "$HOME/.$rc" ]] && ! grep -q "$exec_string" "$HOME/.$rc"; then
echo -e "\n$exec_string" >> "$HOME/.$rc"
echo >> "$HOME/.$rc"
echo "$exec_string" >> "$HOME/.$rc"
echo "== Added SCM Breeze to '~/.$rc'"
fi
done