From cce4fed1ef747392a1b8488a3f8ab23073d90727 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Thu, 1 Aug 2024 10:22:28 -0700 Subject: [PATCH] [Tests] fix `nvm ls-remote` unit test --- test/fast/Unit tests/nvm ls-remote | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/fast/Unit tests/nvm ls-remote b/test/fast/Unit tests/nvm ls-remote index 683fe927cb..bb1ac94465 100755 --- a/test/fast/Unit tests/nvm ls-remote +++ b/test/fast/Unit tests/nvm ls-remote @@ -6,14 +6,14 @@ die () { echo "$@" ; cleanup ; exit 1; } cleanup() { 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 fi unset TEMP_NVM_COLORS } \. ../../../nvm.sh -if [ -n ${NVM_COLORS} ]; then +if [ -n "${NVM_COLORS-}" ]; then export TEMP_NVM_COLORS=NVM_COLORS unset NVM_COLORS fi