[Tests] Fix nvm unload fast test cleanup

Alex Aubuchon 2020-10-22 16:13:33 -04:00 committed by Jordan Harband
parent 0f0d5e8270
commit f2c5ce459a
No known key found for this signature in database
GPG Key ID: 9F6A681E35EF8B56
1 changed files with 1 additions and 1 deletions

View File

@ -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}"