* MOD: cleanup
Some checks failed
Test stage / check and test (push) Failing after 6s

Signed-off-by: Uwe Hermann <uh@uleenucks.de>
This commit is contained in:
2024-01-21 09:12:40 +01:00
parent ce3a704d9e
commit 62c381d5df

View File

@@ -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