From 92cba61fb0d30087ecedffe6171e27bba711ba84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathieu=20M=C3=A9a?= Date: Thu, 23 Apr 2026 13:25:01 -0400 Subject: [PATCH] Modules > image generated > nice to have (2) --- .../listings/en-US/graphics/feature-graphic/MT1.png.MT.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shared-modules/app-android/src/main/play/listings/en-US/graphics/feature-graphic/MT1.png.MT.sh b/shared-modules/app-android/src/main/play/listings/en-US/graphics/feature-graphic/MT1.png.MT.sh index 46605781..61cf2c64 100755 --- a/shared-modules/app-android/src/main/play/listings/en-US/graphics/feature-graphic/MT1.png.MT.sh +++ b/shared-modules/app-android/src/main/play/listings/en-US/graphics/feature-graphic/MT1.png.MT.sh @@ -34,13 +34,13 @@ fi CONFIG_DIR="${ROOT_DIR}/config"; if [ ! -d "$CONFIG_DIR" ]; then echo "$CONFIG_DIR doesn't exist!"; - exit 1; + [ -f "${FILE_1_PNG}" ] && exit 0 || exit 1; fi AGENCY_NAME_FILE="${CONFIG_DIR}/agency_name"; if [ ! -f "$AGENCY_NAME_FILE" ]; then echo "$AGENCY_NAME_FILE doesn't exist!"; - exit 1; + [ -f "${FILE_1_PNG}" ] && exit 0 || exit 1; fi AGENCY_NAME_COUNT=$(grep -c ^ $AGENCY_NAME_FILE); @@ -93,7 +93,7 @@ fi CITIES_FILE="${CONFIG_DIR}/cities"; if [ ! -f "$CITIES_FILE" ]; then echo "$CITIES_FILE doesn't exist!"; - exit 1; + [ -f "${FILE_1_PNG}" ] && exit 0 || exit 1; fi CITIES_LABEL=$(head -n 1 $CITIES_FILE); if [ -z "$CITIES_LABEL" ]; then @@ -136,4 +136,4 @@ else checkResult $?; fi -echo ">> Generating feature-graphic/1.png... DONE"; \ No newline at end of file +echo ">> Generating feature-graphic/1.png... DONE";