mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-11 06:41:50 +00:00
Merge pull request #480 from fjakobs/patch-1
install.sh: make sure to not error out if master branch does not exist
This commit is contained in:
commit
6bcac7f638
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user