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

Support --install option on sourcing nvm.sh #602

Merged
merged 2 commits into from
Dec 26, 2014

Conversation

ljharb
Copy link
Member

@ljharb ljharb commented Dec 26, 2014

Fixes #545.

Note that per http://unix.stackexchange.com/questions/5024/passing-a-variable-to-a-bash-script-when-sourcing-it-in-another-bash-script , dash and sh (and possibly other shells) do not support passing arguments to a script when sourcing - the nvm_supports_source_options method determines support for this, and the same method is used to bail out of the tests so that they don't fail on dash and sh. Yay for progressive enhancement :-)

ljharb added a commit that referenced this pull request Dec 26, 2014
Support `--install` option on sourcing `nvm.sh`
@ljharb ljharb merged commit f8b143c into nvm-sh:master Dec 26, 2014
@ljharb ljharb deleted the install_on_source branch November 15, 2023 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add --install option when sourcing nvm.sh
1 participant