mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 14:21:50 +00:00
[Tests] fix nvm ls-remote
unit test
This commit is contained in:
parent
deac4e0932
commit
423ee82b4c
@ -6,14 +6,14 @@ die () { echo "$@" ; cleanup ; exit 1; }
|
|||||||
|
|
||||||
cleanup() {
|
cleanup() {
|
||||||
unset -f nvm_download nvm_ls_remote nvm_ls_remote_iojs
|
unset -f nvm_download nvm_ls_remote nvm_ls_remote_iojs
|
||||||
if [ -n TEMP_NVM_COLORS ]; then
|
if [ -n "${TEMP_NVM_COLORS-}" ]; then
|
||||||
export NVM_COLORS=TEMP_NVM_COLORS
|
export NVM_COLORS=TEMP_NVM_COLORS
|
||||||
fi
|
fi
|
||||||
unset TEMP_NVM_COLORS
|
unset TEMP_NVM_COLORS
|
||||||
}
|
}
|
||||||
|
|
||||||
\. ../../../nvm.sh
|
\. ../../../nvm.sh
|
||||||
if [ -n ${NVM_COLORS} ]; then
|
if [ -n "${NVM_COLORS-}" ]; then
|
||||||
export TEMP_NVM_COLORS=NVM_COLORS
|
export TEMP_NVM_COLORS=NVM_COLORS
|
||||||
unset NVM_COLORS
|
unset NVM_COLORS
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user