abort build on error

This commit is contained in:
Vinzenz Schroeter 2025-03-09 17:51:44 +01:00
parent e10cfcdbcc
commit dff786e5e7
2 changed files with 5 additions and 1 deletions

View file

@ -1,7 +1,10 @@
#!/bin/sh
set -e
set -x
hugo $(cat .hugo-params)
./tools/merge_cals.py
upcoming="$(tools/gen_upcoming.py static/all.ics 20 5 | tr '\n' ' ')"
cp static/all.ics public/all.ics
sed -i "s#CALENDAR#$upcoming#g" public/index.html
sed -i "s#CALENDAR#$upcoming#g" public/index.html

View file

@ -30,6 +30,7 @@
python-pkgs.icalendar
python-pkgs.pytz
]))
shellcheck
];
};
}