From d3de8680f0bfa36ebf3b63e2d32b410e9c177103 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?imme=C3=ABmosol?= Date: Wed, 11 May 2022 14:16:53 +0200 Subject: [PATCH] Add "git"-arg to nvm_source in install_nvm_from_git --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 2bf513a..fcffd54 100755 --- a/install.sh +++ b/install.sh @@ -140,14 +140,14 @@ install_nvm_from_git() { nvm_echo >&2 'Failed to initialize nvm repo. Please report this!' exit 2 } - command git --git-dir="${INSTALL_DIR}/.git" remote add origin "$(nvm_source)" 2> /dev/null \ - || command git --git-dir="${INSTALL_DIR}/.git" remote set-url origin "$(nvm_source)" || { + command git --git-dir="${INSTALL_DIR}/.git" remote add origin "$(nvm_source "git")" 2> /dev/null \ + || command git --git-dir="${INSTALL_DIR}/.git" remote set-url origin "$(nvm_source "git")" || { nvm_echo >&2 'Failed to add remote "origin" (or set the URL). Please report this!' exit 2 } else # Cloning repo - command git clone "$(nvm_source)" --depth=1 "${INSTALL_DIR}" || { + command git clone "$(nvm_source "git")" --depth=1 "${INSTALL_DIR}" || { nvm_echo >&2 'Failed to clone nvm repo. Please report this!' exit 2 }