]> git.openstreetmap.org Git - chef.git/commitdiff
imagery: add additional wait in osstvw_make_diffs
authorGrant Slater <git@firefishy.com>
Mon, 30 May 2016 23:45:53 +0000 (00:45 +0100)
committerGrant Slater <git@firefishy.com>
Mon, 30 May 2016 23:45:53 +0000 (00:45 +0100)
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')
           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
       if [ ! -f "ossv-${OSSV_DIFF_NAME}-combined.vrt" ]; then
         gdalbuildvrt -resolution highest -hidenodata "ossv-${OSSV_DIFF_NAME}-combined.vrt" ${OSSV_DIFF_NAME}/*.tif
       fi