forked from cccb-website-team/www
abort build on error
This commit is contained in:
parent
e10cfcdbcc
commit
dff786e5e7
5
build.sh
5
build.sh
|
@ -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
|
||||
|
|
Reference in a new issue