Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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