fix: wait for background tasks

This commit is contained in:
silver 2024-05-14 00:15:27 +01:00
parent b3cfc49394
commit 9738ad5120
Signed by untrusted user: silver
GPG key ID: 54E2C71918E93B74
2 changed files with 6 additions and 0 deletions

View file

@ -50,3 +50,6 @@ for d in */; do
done done
cd ../ cd ../
# wait for background tasks to complete
wait $(jobs -p)

View file

@ -91,6 +91,9 @@ function build_pdf() {
shopt -u globstar shopt -u globstar
cd $root cd $root
# wait for background tasks to complete
wait $(jobs -p)
} }
if [[ $1 == "html" ]]; then if [[ $1 == "html" ]]; then