[Tests] Fix nvm unload fast test cleanup
parent
0f0d5e8270
commit
f2c5ce459a
|
@ -5,7 +5,7 @@ set -ex
|
||||||
BEFORE="./before.tmp"
|
BEFORE="./before.tmp"
|
||||||
AFTER="./after.tmp"
|
AFTER="./after.tmp"
|
||||||
|
|
||||||
cleanup () { echo rm -f "${BEFORE}" "${AFTER}"; }
|
cleanup () { rm -f "${BEFORE}" "${AFTER}"; }
|
||||||
die () { echo "$@" ; cleanup ; exit 1; }
|
die () { echo "$@" ; cleanup ; exit 1; }
|
||||||
|
|
||||||
typeset -f | awk '/ \(\) $/ && !/^main / {print $1}' > "${BEFORE}"
|
typeset -f | awk '/ \(\) $/ && !/^main / {print $1}' > "${BEFORE}"
|
||||||
|
|
Loading…
Reference in New Issue