From ad71389dccc8a5a2417fb898af17ae2d96de51c0 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Wed, 23 Jul 2014 10:08:58 +0200 Subject: [PATCH] master branch might not exist After a fresh install I was unable to run the installer again. It was breaking with the error error: branch 'master' not found. my fix makes sure that the installer continues after that. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index b06a1a7..610f409 100755 --- a/install.sh +++ b/install.sh @@ -44,7 +44,7 @@ install_nvm_from_git() { mkdir -p "$NVM_DIR" git clone "$NVM_SOURCE" "$NVM_DIR" fi - cd $NVM_DIR && git checkout v0.11.2 && git branch -D master + cd $NVM_DIR && git checkout v0.11.2 && git branch -D master || true } install_nvm_as_script() {