Skip to content

Commit 2977905

Browse files
committed
[test] avoid leaking temp variable
1 parent dffecf8 commit 2977905

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/fast/Unit tests/nvm_print_versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ cleanup() {
88
unset -f nvm_remote_versions nvm_ls nvm_ls_current
99
if [ -n "$TEMP_NVM_MIN" ]; then
1010
export NVM_MIN="$TEMP_NVM_MIN"
11+
unset TEMP_NVM_MIN
1112
fi
1213
}
1314

0 commit comments

Comments
 (0)