fix: wait for background tasks
This commit is contained in:
parent
b3cfc49394
commit
9738ad5120
2 changed files with 6 additions and 0 deletions
|
@ -50,3 +50,6 @@ for d in */; do
|
|||
done
|
||||
|
||||
cd ../
|
||||
|
||||
# wait for background tasks to complete
|
||||
wait $(jobs -p)
|
||||
|
|
|
@ -91,6 +91,9 @@ function build_pdf() {
|
|||
|
||||
shopt -u globstar
|
||||
cd $root
|
||||
|
||||
# wait for background tasks to complete
|
||||
wait $(jobs -p)
|
||||
}
|
||||
|
||||
if [[ $1 == "html" ]]; then
|
||||
|
|
Loading…
Reference in a new issue