clean even if prepare fails

This commit is contained in:
Felix Van der Jeugt 2020-12-10 21:21:46 +01:00
parent ef346055ba
commit 87b343f731
No known key found for this signature in database
GPG key ID: 58B209295023754D

View file

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