From 87b343f7313512e501e30c1ca0a5e2176e90b10c Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Thu, 10 Dec 2020 21:21:46 +0100 Subject: [PATCH] clean even if prepare fails --- benchmark | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/benchmark b/benchmark index 8b06e97..fe7db2a 100755 --- a/benchmark +++ b/benchmark @@ -7,13 +7,12 @@ inputfile="../inputs/$day-input" if ! ./prepare "$day" "$part" "$inputfile"; then echo 'eh ge hebt precies niet alles geïnstalleerd staan' - exit +else + if [ -x "run" ]; then + hyperfine "./run '$day' '$part' '$inputfile'" + fi fi -[ -x "run" ] || exit 0 - -hyperfine "./run '$day' '$part' '$inputfile'" - if [ -x "clean" ]; then ./clean fi