Make sure multiple nvm run arguments get passed through to node/iojs properly.

Fixes #641.
This commit is contained in:
Jordan Harband
2015-02-07 10:08:20 -08:00
parent 59e27f8108
commit be56ff3b2e
3 changed files with 21 additions and 3 deletions

View File

@@ -0,0 +1,9 @@
#!/bin/sh
die () { echo $@ ; exit 1; }
. ../../../nvm.sh
nvm run 0.10.7 --harmony --version
[ "_$(nvm run 0.10.7 --harmony --version 2>/dev/null | tail -1)" = "_v0.10.7" ] || die "\`nvm run --harmony --version\` failed to run with the correct version"