Compare commits

..

1 Commits

Author SHA1 Message Date
Ryan Williams
92cdcef177
Merge c54ca7cfa7 into ffec9fec72 2025-03-13 03:37:58 +00:00

View File

@ -141,7 +141,9 @@ install_nvm_from_git() {
local remote
remote="$(git config --global clone.defaultRemoteName || true)"
remote="${remote:-origin}"
if [ -z "$remote" ]; then
remote=origin
fi
local fetch_error
if [ -d "$INSTALL_DIR/.git" ]; then
# Updating repo
@ -149,7 +151,7 @@ install_nvm_from_git() {
command printf '\r=> '
fetch_error="Failed to update nvm with $NVM_VERSION, run 'git fetch' in $INSTALL_DIR yourself."
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'"
command printf '\r=> '
mkdir -p "${INSTALL_DIR}"