mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-17 17:41:50 +00:00
[test] avoid leaking temp variable
This commit is contained in:
parent
b4ba55b30c
commit
8ef76acdee
@ -8,6 +8,7 @@ cleanup() {
|
|||||||
unset -f nvm_remote_versions nvm_ls nvm_ls_current
|
unset -f nvm_remote_versions nvm_ls nvm_ls_current
|
||||||
if [ -n "$TEMP_NVM_MIN" ]; then
|
if [ -n "$TEMP_NVM_MIN" ]; then
|
||||||
export NVM_MIN="$TEMP_NVM_MIN"
|
export NVM_MIN="$TEMP_NVM_MIN"
|
||||||
|
unset TEMP_NVM_MIN
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user