Skip to content

Commit

Permalink
[Tests] fix nvm ls-remote unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Aug 1, 2024
1 parent deac4e0 commit cce4fed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/fast/Unit tests/nvm ls-remote
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cce4fed

Please sign in to comment.