first tweaks and a bugfix: stop minifying things if pushd fails

This commit is contained in:
Alexander 2025-07-28 16:02:04 -04:00
parent 209006899b
commit ce3fa344e8
2 changed files with 18 additions and 13 deletions

View file

@ -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)"