* 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:04 +01:00
parent 912864c229
commit ce3a704d9e

View File

@@ -127,7 +127,8 @@ function init_env() {
# TIMEZONE
get_env TIMEZONE
local TIMEZONE_MATCHED_COUNT=$(ls "/usr/share/zoneinfo/${TIMEZONE}" 2> /dev/null | wc -l)
local TIMEZONE_MATCHED_COUNT
TIMEZONE_MATCHED_COUNT=$(find -type f -iname "/usr/share/zoneinfo/${TIMEZONE}" 2> /dev/null | wc -l)
if [[ "${TIMEZONE_MATCHED_COUNT}" -ne 1 ]]; then
TIMEZONE="UTC"
fi