X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d176083465b51e2e5d6a9b65d1964cb739f3c56a..ded0d87e8b86d3df3c261eb862567dd5edce8b59:/cookbooks/imagery/files/default/osstvw_make_diffs?ds=sidebyside 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