allow creation of run in prepare and clean

This commit is contained in:
Felix Van der Jeugt 2020-12-05 15:04:12 +01:00
parent f537171dc2
commit c0bfe8e36b
No known key found for this signature in database
GPG key ID: 58B209295023754D

View file

@ -4,11 +4,16 @@ part="$2"
inputfile="../inputs/$day-input"
[ -x "prepare" ] || exit 0
[ -x "run" ] || exit 0
if ! ./prepare "$day" "$part" "$inputfile"; then
echo 'eh ge hebt precies niet alles geïnstalleerd staan'
exit
fi
[ -x "run" ] || exit 0
hyperfine "./run '$day' '$part' '$inputfile'"
if [ -x "clean" ]; then
./clean
fi