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