Clean up temp test files even if interrupted

Avoids "tmp.*" piling up in /tmp
This commit is contained in:
ISSOtm
2020-12-26 14:38:04 +01:00
parent 097999cad3
commit 7bc42d468b
2 changed files with 4 additions and 2 deletions

View File

@@ -9,6 +9,8 @@ output="$(mktemp)"
errput="$(mktemp)"
rc=0
trap "rm -f '$o' '$gb' '$input' '$output' '$errput'" EXIT
bold="$(tput bold)"
resbold="$(tput sgr0)"
red="$(tput setaf 1)"
@@ -93,5 +95,4 @@ for i in *.asm; do
done
done
rm -f $o $gb $input $output
exit $rc