Suppress error messages in case there's no `master` branch.

Fixes #533.
master
Jordan Harband 2014-09-25 22:10:48 -07:00
parent 53f9841c6c
commit 5ad00f13fa
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,8 @@ install_nvm_from_git() {
mkdir -p "$NVM_DIR"
git clone "$NVM_SOURCE" "$NVM_DIR"
fi
cd "$NVM_DIR" && git checkout v0.17.0 && git branch -D master || true
cd "$NVM_DIR" && git checkout v0.17.0 && git branch -D master >/dev/null 2>&1
return
}
install_nvm_as_script() {