mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Clean up temp test files even if interrupted
Avoids "tmp.*" piling up in /tmp
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user