mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-11 06:41:50 +00:00
Seems changes done in docker do not persist, had to reapply them
This commit is contained in:
parent
5a28180ed6
commit
650b069bb8
@ -1,8 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
set -ex
|
set -x
|
||||||
die () { echo "$@" ; exit 1; }
|
\. ../../nvm.sh
|
||||||
\. ../../../nvm.sh
|
|
||||||
|
|
||||||
NVM_TEST_VERSION=v9
|
NVM_TEST_VERSION=v9
|
||||||
|
|
||||||
@ -12,5 +11,10 @@ NVM_TEST_VERSION=v9
|
|||||||
# Write it to nvmrc
|
# Write it to nvmrc
|
||||||
echo "$NVM_TEST_VERSION" > .nvmrc
|
echo "$NVM_TEST_VERSION" > .nvmrc
|
||||||
|
|
||||||
|
output="$(../../nvm-exec 2>&1)";
|
||||||
|
expected='N/A: version "v9" is not yet installed.
|
||||||
|
|
||||||
|
You need to run `nvm install v9` to install and use it.
|
||||||
|
No NODE_VERSION provided; no .nvmrc file found';
|
||||||
# Skip install, we want to test the error message
|
# Skip install, we want to test the error message
|
||||||
nvm-exec
|
diff <(echo "$expected") <(echo "$output")
|
||||||
|
Loading…
Reference in New Issue
Block a user