Skip to content
Myr

[Tests] Fix nvm unload fast test cleanup

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Alex Aubuchon · committed by Jordan Harband · parent 0f0d5e8 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • tests:+1 added−1 removed

1 file+1 added−1 removed

modified:test/fast/Running "nvm unload" should unset all function and variables.+1 added-1 removed
3 unmodified lines
45BEFORE="./before.tmp"6AFTER="./after.tmp"78cleanup () { echo rm -f "${BEFORE}" "${AFTER}"; }8cleanup () { rm -f "${BEFORE}" "${AFTER}"; }9die () { echo "$@" ; cleanup ; exit 1; }1011typeset -f | awk '/ \(\) $/ && !/^main / {print $1}' > "${BEFORE}"12env | grep -v PATH= | grep -v IFS= | grep -v NVM_ | sort >> "${BEFORE}"
18 unmodified lines