Update 00-global_var.sh

This commit is contained in:
Alexandre
2025-07-19 21:37:16 +02:00
committed by GitHub
parent 0c015f47f5
commit b12bbbf41b

View File

@@ -117,7 +117,8 @@ done
################ ################
# Set timezone # # Set timezone #
################ ################
set +e set +eu
if [ -n "$TZ" ] && [ -f /etc/localtime ]; then if [ -n "$TZ" ] && [ -f /etc/localtime ]; then
if [ -f /usr/share/zoneinfo/"$TZ" ]; then if [ -f /usr/share/zoneinfo/"$TZ" ]; then
echo "Timezone set from $(cat /etc/timezone) to $TZ" echo "Timezone set from $(cat /etc/timezone) to $TZ"