Skip to content
Myr

Using `nvm_version_greater` and `nvm_version_greater_than_or_equal_to` instead of `expr` in `nvm install`.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jordan Harband · committed by Jordan Harband · parent cb6456f · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:nvm.sh+3 added-3 removed
557 unmodified lines
558 then559 nvm use $VERSION560 if ! nvm_has "npm" ; then561 echo "Installing npm..."562 if [ "`expr "$VERSION" : '\(^v0\.1\.\)'`" != '' ]; then562 if nvm_version_greater 0.2.0 "$VERSION"; then563 echo "npm requires node v0.2.3 or higher" >&2564 elif [ "`expr "$VERSION" : '\(^v0\.2\.\)'`" != '' ]; then565 if [ "`expr "$VERSION" : '\(^v0\.2\.[0-2]$\)'`" != '' ]; then564 elif nvm_version_greater_than_or_equal_to "$VERSION" 0.2.0; then565 if nvm_version_greater 0.2.3 "$VERSION"; then566 echo "npm requires node v0.2.3 or higher" >&2567 else568 nvm_download https://npmjs.org/install.sh -o - | clean=yes npm_install=0.2.19 sh569 fi
305 unmodified lines