From a0d04d0b6bd4027a94235e51467fc1b88d8aed6d Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sun, 22 Feb 2015 02:16:55 -0800 Subject: [PATCH] Preventing an unalias error in tests. --- test/fast/Unit tests/nvm_ls_current | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/fast/Unit tests/nvm_ls_current b/test/fast/Unit tests/nvm_ls_current index 990312c..1332b96 100755 --- a/test/fast/Unit tests/nvm_ls_current +++ b/test/fast/Unit tests/nvm_ls_current @@ -3,7 +3,7 @@ TEST_PWD=$(pwd) TEST_DIR="$TEST_PWD/nvm_ls_current_tmp" -cleanup() { rm -rf "$TEST_DIR"; unset -f return_zero; unalias node; } +cleanup() { rm -rf "$TEST_DIR"; unset -f return_zero; alias node='node' ; unalias node; } die () { echo $@ ; cleanup ; exit 1; } . ../../../nvm.sh