mirror of
https://git.acl.cool/al/pages.git
synced 2025-12-15 20:11:17 -05:00
set -e in build.sh
This commit is contained in:
parent
ce3fa344e8
commit
c3c9200998
3 changed files with 10 additions and 2 deletions
5
build.sh
5
build.sh
|
|
@ -62,6 +62,9 @@ done
|
|||
rm css/code.css
|
||||
pygmentize -f html -S algol_nu | grep -v 'line-height' >css/code.css
|
||||
|
||||
# The stuff below should be all or nothing, so we exit if something returns non-zero
|
||||
set -e
|
||||
|
||||
for site in acl.cool ytheleus.org; do
|
||||
pushd "$site"
|
||||
soup_config
|
||||
|
|
@ -70,7 +73,7 @@ for site in acl.cool ytheleus.org; do
|
|||
if (( $? != 0 )); then
|
||||
exit $?;
|
||||
fi
|
||||
pushd serve &&
|
||||
pushd serve
|
||||
find -type f -name '*.html' -o -name '*.css' -o -name '*.svg' | xargs -0 -d\\n -I{} minify -o {} {}
|
||||
popd
|
||||
NEXT_DIR="serve_$(date +%s)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue