From f2c5ce459a4e9afb54a17c3e8d50558a62c8b456 Mon Sep 17 00:00:00 2001 From: Alex Aubuchon Date: Thu, 22 Oct 2020 16:13:33 -0400 Subject: [PATCH] [Tests] Fix nvm unload fast test cleanup --- ...ing \"nvm unload\" should unset all function and variables." | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/test/fast/Running \"nvm unload\" should unset all function and variables." "b/test/fast/Running \"nvm unload\" should unset all function and variables." index 516c4f0..e7fb706 100755 --- "a/test/fast/Running \"nvm unload\" should unset all function and variables." +++ "b/test/fast/Running \"nvm unload\" should unset all function and variables." @@ -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}"