From 07678f2b504996ac7a7c9af1b6b43ff0697fd005 Mon Sep 17 00:00:00 2001 From: ryenus Date: Mon, 15 Jul 2024 15:19:15 +0800 Subject: [PATCH] [test] avoid leaking temp variable --- test/fast/Unit tests/nvm_print_versions | 1 + 1 file changed, 1 insertion(+) diff --git a/test/fast/Unit tests/nvm_print_versions b/test/fast/Unit tests/nvm_print_versions index 3e21498c9d..39c7137624 100755 --- a/test/fast/Unit tests/nvm_print_versions +++ b/test/fast/Unit tests/nvm_print_versions @@ -8,6 +8,7 @@ cleanup() { unset -f nvm_remote_versions nvm_ls nvm_ls_current if [ -n "$TEMP_NVM_MIN" ]; then export NVM_MIN="$TEMP_NVM_MIN" + unset TEMP_NVM_MIN fi }