diff --git a/install.sh b/install.sh index 3ea681f..417c6a2 100755 --- a/install.sh +++ b/install.sh @@ -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