diff --git a/test/install_script/nvm_detect_profile b/test/install_script/nvm_detect_profile index 7a8f421e8d8..e9d310defc5 100755 --- a/test/install_script/nvm_detect_profile +++ b/test/install_script/nvm_detect_profile @@ -102,18 +102,18 @@ if [ "$NVM_DETECT_PROFILE" != "$HOME/.bash_profile" ]; then die "nvm_detect_profile should have selected .bash_profile" fi -# Otherwise, it should favor .zshrc if file exists +# Otherwise, it should favor .zprofile if file exists rm ".bash_profile" NVM_DETECT_PROFILE="$(unset SHELL; nvm_detect_profile)" -if [ "$NVM_DETECT_PROFILE" != "$HOME/.zshrc" ]; then - die "nvm_detect_profile should have selected .zshrc" +if [ "$NVM_DETECT_PROFILE" != "$HOME/.zprofile" ]; then + die "nvm_detect_profile should have selected .zprofile" fi -# Otherwise, it should favor .zprofile if file exists -rm ".zshrc" +# Otherwise, it should favor .zshrc if file exists +rm ".zprofile" NVM_DETECT_PROFILE="$(unset SHELL; nvm_detect_profile)" -if [ "$NVM_DETECT_PROFILE" != "$HOME/.zprofile" ]; then - die "nvm_detect_profile should have selected .zprofile" +if [ "$NVM_DETECT_PROFILE" != "$HOME/.zshrc" ]; then + die "nvm_detect_profile should have selected .zshrc" fi # It should be empty if none is found