X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d176083465b51e2e5d6a9b65d1964cb739f3c56a..a75d9db67025eeb4db19abdb36a6a870a6ea0dc4:/cookbooks/imagery/files/default/osstvw_make_diffs?ds=inline diff --git a/cookbooks/imagery/files/default/osstvw_make_diffs b/cookbooks/imagery/files/default/osstvw_make_diffs index 583e51296..636c6f334 100644 --- a/cookbooks/imagery/files/default/osstvw_make_diffs +++ b/cookbooks/imagery/files/default/osstvw_make_diffs @@ -64,6 +64,8 @@ for (( i=0; i<${OSSV_EDITIONS_LENGTH}; i++ )); do running=($(jobs -rp)) done done < <(find "${OSSV_DIFF_NAME}" -maxdepth 1 -name '*.tif' -size -180000c -printf '%f\0') + # Wait for background jobs to finish + wait if [ ! -f "ossv-${OSSV_DIFF_NAME}-combined.vrt" ]; then gdalbuildvrt -resolution highest -hidenodata "ossv-${OSSV_DIFF_NAME}-combined.vrt" ${OSSV_DIFF_NAME}/*.tif fi