]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/imagery/files/default/osstvw_make_diffs
mail: fix typo on community.openstreetmap.org domain
[chef.git] / cookbooks / imagery / files / default / osstvw_make_diffs
index 583e51296290c61396d3294ced97316e6bc6d6aa..636c6f33459295d79eefefb0eb683d33de154eb7 100644 (file)
@@ -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