diff --git a/05-Setting_TimeZone.sh b/05-Setting_TimeZone.sh index 7e6eacc..4e964c8 100644 --- a/05-Setting_TimeZone.sh +++ b/05-Setting_TimeZone.sh @@ -8,20 +8,15 @@ source "$SCRIPTDIR/common/load-defaults.sh" get_tz() { - local tz_type="$1" - printf "$COL_LIGHT_BLUE" "* Checking Current Timezone in $tz_type" - if [ "$tz_type" == "/etc/timezone" ]; then current_timezone=`cat /etc/timezone` elif [ "$tz_type" == "timedatectl" ]; then current_timezone=$(timedatectl | grep "zone" | sed -e 's/^[ ]*Time zone: \(.*\) (.*)$/\1/g') fi - printf "$COL_LIGHT_BLUE" "* Timezone in $tz_type is set to $current_timezone" - - + return $current_timezone }