From 981633bf97bed0ac71163e61390bdd0e59efc0f4 Mon Sep 17 00:00:00 2001 From: Xiretza Date: Thu, 10 Dec 2020 19:20:41 +0100 Subject: [PATCH] test.sh: fix removal of test output files --- test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test.sh b/test.sh index 4346363..3d68585 100755 --- a/test.sh +++ b/test.sh @@ -31,7 +31,7 @@ for day in day*; do for solution in "$day"/*; do echo -n "$solution... " solution_output=$(mktemp) - trap "rm $solution_output" EXIT + trap "rm -f '$solution_output'" EXIT run_solution "$solution" > "$solution_output" if ! diff -u "$expected" "$solution_output"; then @@ -48,5 +48,7 @@ for day in day*; do else echo ok fi + + rm "$solution_output" done done