check environment in prepare

This commit is contained in:
Felix Van der Jeugt 2020-12-04 17:07:30 +01:00
parent aa446f085b
commit cd39dd7075
No known key found for this signature in database
GPG key ID: 58B209295023754D

View file

@ -6,5 +6,9 @@ inputfile="../inputs/$day-input"
[ -x "prepare" ] || exit 0 [ -x "prepare" ] || exit 0
[ -x "run" ] || 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'" hyperfine "./run '$day' '$part' '$inputfile'"