test
This commit is contained in:
parent
37b3fe3cb4
commit
98a0f47bb0
@ -16,7 +16,6 @@ get_tz() {
|
|||||||
current_timezone=$(timedatectl | grep "zone" | sed -e 's/^[ ]*Time zone: \(.*\) (.*)$/\1/g')
|
current_timezone=$(timedatectl | grep "zone" | sed -e 's/^[ ]*Time zone: \(.*\) (.*)$/\1/g')
|
||||||
fi
|
fi
|
||||||
printf "$COL_LIGHT_BLUE" "* Timezone in $tz_type is set to $current_timezone"
|
printf "$COL_LIGHT_BLUE" "* Timezone in $tz_type is set to $current_timezone"
|
||||||
return $current_timezone
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -25,6 +24,7 @@ declare -a TIMEPLACES=("/etc/timezone" "timedatectl")
|
|||||||
for timeitem in "${TIMEPLACES[@]}"
|
for timeitem in "${TIMEPLACES[@]}"
|
||||||
do
|
do
|
||||||
get_tz $timeitem
|
get_tz $timeitem
|
||||||
|
echo $current_timezone
|
||||||
done
|
done
|
||||||
|
|
||||||
exit
|
exit
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user