From c2b7ef5960c6f7baa193132dd44b09539c08794c Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Thu, 20 Oct 2011 19:38:20 +0800 Subject: [PATCH] OS X's default shell doesn't like "echo -e foo" - it actually outputs "-e foo". --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 37fa02d..df10382 100755 --- a/install.sh +++ b/install.sh @@ -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