2014-08-20 15:01:06 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-11-07 03:34:36 +08:00
|
|
|
die () { echo "$@" ; exit 1; }
|
2014-08-20 15:01:06 +08:00
|
|
|
|
2016-11-04 13:15:18 +08:00
|
|
|
\. ../../../nvm.sh
|
2014-08-20 15:01:06 +08:00
|
|
|
|
|
|
|
nvm_version_greater 0.10.0 0.2.12 || die '"nvm_version_greater 0.10.0 0.2.12" did not return true'
|
2014-08-22 14:42:51 +08:00
|
|
|
|
|
|
|
if nvm_version_greater 0.10.0 0.20.12; then
|
|
|
|
die '"nvm_version_greater 0.10.0 0.20.12" returned true'
|
|
|
|
fi
|
|
|
|
|
|
|
|
if nvm_version_greater 0.10.0 0.10.0; then
|
|
|
|
die '"nvm_version_greater" returned false for the same two versions'
|
|
|
|
fi
|
2014-08-20 15:01:06 +08:00
|
|
|
|