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,12 +7,11 @@ 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
fi if [ -x "run" ]; then
[ -x "run" ] || exit 0
hyperfine "./run '$day' '$part' '$inputfile'" hyperfine "./run '$day' '$part' '$inputfile'"
fi
fi
if [ -x "clean" ]; then if [ -x "clean" ]; then
./clean ./clean