mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-11 14:51:49 +00:00
parent
cb4e010de7
commit
43c3c23928
@ -82,12 +82,12 @@ install_nvm_from_git() {
|
|||||||
cd "$INSTALL_DIR"
|
cd "$INSTALL_DIR"
|
||||||
fi
|
fi
|
||||||
command git checkout --quiet "$(nvm_latest_version)"
|
command git checkout --quiet "$(nvm_latest_version)"
|
||||||
if [ ! -z "$(cd "$INSTALL_DIR" && git show-ref refs/heads/master)" ]; then
|
if [ ! -z "$(command git show-ref refs/heads/master)" ]; then
|
||||||
if git branch --quiet 2>/dev/null; then
|
if git branch --quiet 2>/dev/null; then
|
||||||
cd "$INSTALL_DIR" && command git branch --quiet -D master >/dev/null 2>&1
|
command git branch --quiet -D master >/dev/null 2>&1
|
||||||
else
|
else
|
||||||
echo >&2 "Your version of git is out of date. Please update it!"
|
echo >&2 "Your version of git is out of date. Please update it!"
|
||||||
cd "$INSTALL_DIR" && command git branch -D master >/dev/null 2>&1
|
command git branch -D master >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user