diff --git a/postgres-backup/app/includes.sh b/postgres-backup/app/includes.sh index 2535555..b2d9f3e 100644 --- a/postgres-backup/app/includes.sh +++ b/postgres-backup/app/includes.sh @@ -128,7 +128,7 @@ function init_env() { # TIMEZONE get_env TIMEZONE local TIMEZONE_MATCHED_COUNT - TIMEZONE_MATCHED_COUNT=$(find -type f -iname "/usr/share/zoneinfo/${TIMEZONE}" 2> /dev/null | wc -l) + TIMEZONE_MATCHED_COUNT=$(find "/usr/share/zoneinfo" -type f -iname "${TIMEZONE}" 2> /dev/null | wc -l) if [[ "${TIMEZONE_MATCHED_COUNT}" -ne 1 ]]; then TIMEZONE="UTC" fi