ensure pdf gen is complete

main
Bel LaPointe 2023-10-19 10:12:31 -06:00
parent 6cbf36a7cf
commit 245a3a739b
1 changed files with 11 additions and 2 deletions

View File

@ -40,9 +40,18 @@ google-chrome-stable \
--run-all-compositor-stages-before-draw \
--no-pdf-header-footer \
http://localhost:8080/index.html
sleep 5
get_state() {
cksum $outdir/public/BreeLaPointeResume.pdf | awk '{print $1}'
}
state=$(get_state)
while true; do
sleep 5
if [ "$state" == "$(get_state)" ]; then
break
fi
done
kill $pid || true
ls $outdir/public/BreeLaPointeResume.pdf
echo; ls $outdir/public/BreeLaPointeResume.pdf
(
if ! which woff2_compress; then