From e6003380229d68a6176a2f1c6fb52cbd82b66479 Mon Sep 17 00:00:00 2001 From: Halvor Holsten Strand Date: Fri, 15 Nov 2019 10:29:34 +0100 Subject: [PATCH] Touch .bash_profile to make sure it exists Added a `touch ~/.bash_profile` to the installer to make sure it exists. This should address #7 problems. --- install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.sh b/install.sh index 3ea681f..4a8ecc3 100755 --- a/install.sh +++ b/install.sh @@ -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