Preventing an unalias error in tests.

master
Jordan Harband 2015-02-22 02:16:55 -08:00
parent 6c1a310846
commit a0d04d0b6b
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
TEST_PWD=$(pwd) TEST_PWD=$(pwd)
TEST_DIR="$TEST_PWD/nvm_ls_current_tmp" 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; } die () { echo $@ ; cleanup ; exit 1; }
. ../../../nvm.sh . ../../../nvm.sh