mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-08-17 11:03:44 +00:00
Compare commits
No commits in common. "22b4bf3fe94cd5ca43c4227d9f10c38eecec30e9" and "c54ca7cfa737a2fb0ec62dd0f3eb49715b639c25" have entirely different histories.
22b4bf3fe9
...
c54ca7cfa7
@ -141,7 +141,9 @@ install_nvm_from_git() {
|
|||||||
|
|
||||||
local remote
|
local remote
|
||||||
remote="$(git config --global clone.defaultRemoteName || true)"
|
remote="$(git config --global clone.defaultRemoteName || true)"
|
||||||
remote="${remote:-origin}"
|
if [ -z "$remote" ]; then
|
||||||
|
remote=origin
|
||||||
|
fi
|
||||||
local fetch_error
|
local fetch_error
|
||||||
if [ -d "$INSTALL_DIR/.git" ]; then
|
if [ -d "$INSTALL_DIR/.git" ]; then
|
||||||
# Updating repo
|
# Updating repo
|
||||||
@ -149,7 +151,7 @@ install_nvm_from_git() {
|
|||||||
command printf '\r=> '
|
command printf '\r=> '
|
||||||
fetch_error="Failed to update nvm with $NVM_VERSION, run 'git fetch' in $INSTALL_DIR yourself."
|
fetch_error="Failed to update nvm with $NVM_VERSION, run 'git fetch' in $INSTALL_DIR yourself."
|
||||||
else
|
else
|
||||||
fetch_error="Failed to fetch ${remote} with ${NVM_VERSION}. Please report this!"
|
fetch_error="Failed to fetch $remote with $NVM_VERSION. Please report this!"
|
||||||
nvm_echo "=> Downloading nvm from git to '$INSTALL_DIR'"
|
nvm_echo "=> Downloading nvm from git to '$INSTALL_DIR'"
|
||||||
command printf '\r=> '
|
command printf '\r=> '
|
||||||
mkdir -p "${INSTALL_DIR}"
|
mkdir -p "${INSTALL_DIR}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user