Merge pull request #230 from femtofox/new_working

Remove redundant notification screen from timezone set
This commit is contained in:
noon92 2025-01-20 22:47:07 +02:00 • committed by GitHub
commit 1b3deefb79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,10 +25,8 @@ log_message() {
}
set_timezone() {
if timedatectl set-timezone "$1"; then
log_message "\nTime zone set to $1 (UTC$(date +%z)) successfully."
else
log_message "\nFailed to set the time zone to $1."
if ! timedatectl set-timezone "$1"; then
log_message "\nFailed to set the time zone to $1."
exit 1
fi
}