fix to proper echo of nvm which. Checkin test which had been left out
parent
234b925c7a
commit
a1c0c34088
2
nvm.sh
2
nvm.sh
|
@ -968,7 +968,7 @@ nvm() {
|
||||||
|
|
||||||
if [ "_$VERSION" = '_system' ]; then
|
if [ "_$VERSION" = '_system' ]; then
|
||||||
if nvm_has_system_node >/dev/null 2>&1; then
|
if nvm_has_system_node >/dev/null 2>&1; then
|
||||||
echo $(dirname `which node`)
|
echo $(nvm use system && echo dirname $(which node))
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
echo "System version of node not found." >&2
|
echo "System version of node not found." >&2
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. ../../../nvm.sh
|
||||||
|
|
||||||
|
nvm which nonexistent_version
|
||||||
|
[ "$?" = "1" ]
|
Loading…
Reference in New Issue