From 37b3fe3cb42d9f494ba4ec91ab97041a19453b43 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Wed, 5 Apr 2023 10:37:17 -0400 Subject: [PATCH] test --- 05-Setting_TimeZone.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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 }