-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
[Fix] nvm install error unknown condition: -ne
#2915
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
Conversation
Fixes nvm-sh#2914 Co-authored-by: epoweripione <[email protected]> Co-authored-by: Jordan Harband <[email protected]>
ljharb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than just add this default, I'd prefer to figure out which code branch is failing to set the EXIT_CODE properly.
|
I confirm it fixes the issue but @ljharb is right: that is not fixing the root cause and why a not properly initialized variable ends up in a condition check. |
ljharb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
k, i've figured it out - the nvm use result wasn't being captured, and nvm install --lts was triggering that.
Will land and release this soon.
|
I'm still getting this on 0.39.2 ? |
|
That’s because this fix isn’t in v0.39.2. |
Hopefully fixes #2914