Browse Source

[Tests] Fix nvm unload fast test cleanup

Alex Aubuchon 4 years ago committed by Jordan Harband
parent
commit
f2c5ce459a
No known key found for this signature in database
GPG Key ID: 9F6A681E35EF8B56
  1. 2
      test/fast/Running "nvm unload" should unset all function and variables.

2
test/fast/Running "nvm unload" should unset all function and variables.

@ -5,7 +5,7 @@ set -ex @@ -5,7 +5,7 @@ set -ex
BEFORE="./before.tmp"
AFTER="./after.tmp"
cleanup () { echo rm -f "${BEFORE}" "${AFTER}"; }
cleanup () { rm -f "${BEFORE}" "${AFTER}"; }
die () { echo "$@" ; cleanup ; exit 1; }
typeset -f | awk '/ \(\) $/ && !/^main / {print $1}' > "${BEFORE}"

Loading…
Cancel
Save