You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
356 B
14 lines
356 B
#!/bin/sh |
|
|
|
die () { echo $@ ; exit 1; } |
|
|
|
. ../../../nvm.sh |
|
|
|
nvm deactivate 2>&1 >/dev/null || die 'deactivate failed' |
|
|
|
nvm use node || die 'nvm use node failed' |
|
OUTPUT="$(nvm current)" |
|
EXPECTED_OUTPUT="$(nvm_version stable)" |
|
|
|
[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] \ |
|
|| die "'nvm use node' + 'nvm current' did not output '$EXPECTED_OUTPUT'; got '$OUTPUT'"
|
|
|