From 29779056708136fe30d2d37ad442482d7640fc90 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 3e21498c9d9..39c71376246 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 }