Skip to content

Commit

Permalink
Fixes #3 by inserting a newline to .bash_profile if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
danniefraim authored and fabriziocucci committed Sep 7, 2018
1 parent 13a62c5 commit 4831304
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4831304

Please sign in to comment.