Preventing an unalias error in tests.
parent
6c1a310846
commit
a0d04d0b6b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue