Skip to content

Commit

Permalink
Touch .bash_profile to make sure it exists
Browse files Browse the repository at this point in the history
Added a `touch ~/.bash_profile` to the installer to make sure it exists. This should address fabriziocucci#7 problems.
  • Loading branch information
Ondkloss authored Nov 15, 2019
1 parent 4831304 commit e600338
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,6 +5,9 @@ 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

# Make sure '.bash_profile' exists
touch ~/.bash_profile

# Add newline at the end of the '.bash_profile' if it doesn't exist
sed -i '' '$a\' ~/.bash_profile

Expand Down

0 comments on commit e600338

Please sign in to comment.