From 6015e4b5060ce7b7b06fd11f2e70cd84c25f8dfd Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Tue, 31 May 2016 00:45:53 +0100 Subject: [PATCH] imagery: add additional wait in osstvw_make_diffs --- cookbooks/imagery/files/default/osstvw_make_diffs | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.43.2