[Fix] install.sh: fix failing install tests (#3458)

This commit is contained in:
menaechmi
2024-11-12 11:57:02 -06:00
committed by Jordan Harband
parent 3de0b15810
commit abd02e5aae
2 changed files with 5 additions and 5 deletions

View File

@@ -306,7 +306,7 @@ nvm_detect_profile() {
if [ -z "$DETECTED_PROFILE" ]; then
for EACH_PROFILE in ".profile" ".bashrc" ".bash_profile" ".zprofile" ".zshrc"
do
if DETECTED_PROFILE="$(nvm_try_profile "${HOME}/${EACH_PROFILE}")"; then
if DETECTED_PROFILE="$(nvm_try_profile "${ZDOTDIR:-${HOME}}/${EACH_PROFILE}")"; then
break
fi
done