Skip to content

Commit

Permalink
Fix Issue fabriziocucci#7 .bash_profile: No such file or directory wh…
Browse files Browse the repository at this point in the history
…ile installing
  • Loading branch information
JamesHare authored Apr 17, 2020
1 parent 4831304 commit 606c4ea
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ 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

FILE=~/.bash_profile
if test -f "$FILE"; then
echo "$FILE detected"
else
echo "$FILE not detected. Creating it now." &&
touch FILE
fi

# 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 606c4ea

Please sign in to comment.