%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/nginx/.nvm/test/fast/
Upload File :
Create Path :
Current File : //home/nginx/.nvm/test/fast/Running 'nvm install' with an invalid version fails nicely

#!/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"

Zerion Mini Shell 1.0