fix(nvm): remove nvm not found verbose message

This commit is contained in:
Carlo Sala 2023-07-19 14:46:35 +02:00
parent 33fbbdbb0d
commit 7cf00a0b5c
No known key found for this signature in database
GPG Key ID: DA6FB450C1A4FE9A

View File

@ -16,13 +16,7 @@ fi
# Note: nvm is a function so we need to use `which` # Note: nvm is a function so we need to use `which`
which nvm &>/dev/null && return which nvm &>/dev/null && return
if [[ -z "$NVM_DIR" ]]; then if [[ -z "$NVM_DIR" ]] || [[ ! -f "$NVM_DIR/nvm.sh" ]]; then
echo "[oh-my-zsh] nvm installation cannot be found"
echo "[oh-my-zsh] set NVM_DIR to your installation"
return
fi
if [[ ! -f "$NVM_DIR/nvm.sh" ]]; then
echo "[oh-my-zsh] nvm.sh does not exist in $NVM_DIR"
return return
fi fi