From 4831304a8da0fb99ae6ae2c60ed27bceebdf0c8a Mon Sep 17 00:00:00 2001 From: Danni Efraim Date: Thu, 30 Aug 2018 09:58:08 +0200 Subject: [PATCH] Fixes #3 by inserting a newline to .bash_profile if it doesn't exist --- install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.sh b/install.sh index 6a20598..3ea681f 100755 --- a/install.sh +++ b/install.sh @@ -5,4 +5,7 @@ curl -o ~/.git-bash-for-mac.sh https://raw.githubusercontent.com/fabriziocucci/g curl -o ~/.git-completion.bash https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash curl -o ~/.git-prompt.sh https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh +# Add newline at the end of the '.bash_profile' if it doesn't exist +sed -i '' '$a\' ~/.bash_profile + echo "source ~/.git-bash-for-mac.sh" >> ~/.bash_profile