From 4ca71d81cfe02e2ffb13234e913c18508968d8e1 Mon Sep 17 00:00:00 2001 From: Timo Sand Date: Tue, 17 Dec 2013 08:28:31 +0200 Subject: [PATCH] Changed test according to comments --- ...g \"nvm current\" should display current nvm environment." | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git "a/test/fast/Running \"nvm current\" should display current nvm environment." "b/test/fast/Running \"nvm current\" should display current nvm environment." index bc80cf6..09b8931 100755 --- "a/test/fast/Running \"nvm current\" should display current nvm environment." +++ "b/test/fast/Running \"nvm current\" should display current nvm environment." @@ -1,4 +1,6 @@ #!/bin/sh +die () { echo $@ ; exit 1; } + . ../../nvm.sh -nvm current | grep current +[[ $(nvm current) == *"current"* ]] || die "Failed to find current version"