mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-08-17 11:03:44 +00:00
[test] avoid leaking temp variable
This commit is contained in:
parent
03ecd5c33d
commit
22dc48fa21
@ -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…
x
Reference in New Issue
Block a user