Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for .nvmrc script #1823

Merged
merged 1 commit into from
May 31, 2018
Merged

fix for .nvmrc script #1823

merged 1 commit into from
May 31, 2018

Conversation

SrHuevo
Copy link
Contributor

@SrHuevo SrHuevo commented May 30, 2018

The script isn't working if .nvmrc file had a diferent version of node

@ljharb
Copy link
Member

ljharb commented May 30, 2018

This is a revert of #1821; @sidsakhadeo, can you and @SrHuevo hash this out?

@sidsakhadeo
Copy link

Hi @SrHuevo, can you elaborate on what's not working for you? I've tried the script for the case when the .nvmrc file has a different version of node listed. In that case it should go into the nvm install block

if [ "$nvmrc_node_version" = "N/A" ]; then
      nvm install

@ljharb
Copy link
Member

ljharb commented May 30, 2018

That would only happen if it’s not installed; but if it’s installed but different than the current one?

@sidsakhadeo
Copy link

sidsakhadeo commented May 30, 2018

I think you're right. I apologize for the bad PR. However, the case where its installed and needs to be used would still be missed. If you want to go ahead and merge this PR, I can work on fixing it later.

@ljharb ljharb merged commit ef35bc4 into nvm-sh:master May 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants