From ba0fce1244ac9be97f0b1987ff7d4ca773e6b76b Mon Sep 17 00:00:00 2001 From: Chris Hubbard Date: Tue, 14 Feb 2023 15:44:32 -0500 Subject: [PATCH] Allow for missing nav_drawer.png --- .../console/views/cron/scripts/upload/default/build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/application/console/views/cron/scripts/upload/default/build.sh b/application/console/views/cron/scripts/upload/default/build.sh index 6b44e4c..a9f8b16 100644 --- a/application/console/views/cron/scripts/upload/default/build.sh +++ b/application/console/views/cron/scripts/upload/default/build.sh @@ -373,7 +373,11 @@ EOL popd # combine json objects - jq -cM -s '.[0] * .[1] * .[2]' "$NOTIFY_LANG_TMP" "$NOTIFY_IMAGES_TMP" "$NOTIFY_LISTING_TMP" > "${ASSET_OUTPUT_DIR}/notify.json" + if [ -s "${NOTIFY_IMAGES_TMP}" ]; then + jq -cM -s '.[0] * .[1] * .[2]' "$NOTIFY_LANG_TMP" "$NOTIFY_IMAGES_TMP" "$NOTIFY_LISTING_TMP" > "${ASSET_OUTPUT_DIR}/notify.json" + else + jq -cM -s '.[0] * .[1]' "$NOTIFY_LANG_TMP" "$NOTIFY_LISTING_TMP" > "${ASSET_OUTPUT_DIR}/notify.json" + fi # Not exported so clear it VERSION_CODE=""