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.
13 lines
375 B
13 lines
375 B
#!/bin/sh |
|
|
|
set -ex |
|
|
|
die () { echo "$@" ; exit 1; } |
|
|
|
\. ../../nvm.sh |
|
|
|
set +ex # needed for stderr |
|
OUTPUT="$(nvm install invalid.invalid 2>&1)" |
|
set -ex |
|
EXPECTED_OUTPUT="Version 'invalid.invalid' not found - try \`nvm ls-remote\` to browse available versions." |
|
[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "nvm installing an invalid version did not print a nice error message"
|
|
|