mirror of
https://git.acl.cool/al/pages.git
synced 2025-12-15 20:11:17 -05:00
first tweaks and a bugfix: stop minifying things if pushd fails
This commit is contained in:
parent
209006899b
commit
ce3fa344e8
2 changed files with 18 additions and 13 deletions
5
build.sh
5
build.sh
|
|
@ -67,7 +67,10 @@ for site in acl.cool ytheleus.org; do
|
|||
soup_config
|
||||
rm -rf serve/
|
||||
soupault
|
||||
pushd serve/
|
||||
if (( $? != 0 )); then
|
||||
exit $?;
|
||||
fi
|
||||
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