[test] avoid leaking temp variable

This commit is contained in:
ryenus 2024-07-15 15:19:15 +08:00
parent c02964100e
commit f99c9f30cd

View File

@ -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
}