From cd39dd7075e1cc0ace873a08dfe5a9f2a092f3bc Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Fri, 4 Dec 2020 17:07:30 +0100 Subject: [PATCH] check environment in prepare --- benchmark | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/benchmark b/benchmark index a509fd8..7050750 100755 --- a/benchmark +++ b/benchmark @@ -6,5 +6,9 @@ inputfile="../inputs/$day-input" [ -x "prepare" ] || exit 0 [ -x "run" ] || exit 0 -./prepare "$day" "$part" "$inputfile" +if ! ./prepare "$day" "$part" "$inputfile"; then + echo 'eh ge hebt precies niet alles geïnstalleerd staan' + exit +fi + hyperfine "./run '$day' '$part' '$inputfile'"