summaryrefslogtreecommitdiff
path: root/.local/sbin/stz
diff options
context:
space:
mode:
Diffstat (limited to '.local/sbin/stz')
-rwxr-xr-x.local/sbin/stz4
1 files changed, 1 insertions, 3 deletions
diff --git a/.local/sbin/stz b/.local/sbin/stz
index 7a6fdc6..413bf40 100755
--- a/.local/sbin/stz
+++ b/.local/sbin/stz
@@ -2,9 +2,7 @@
set -e
-choice="`timedatectl list-timezones | grep './.' | osel`"
-
-[ -n "$choice" ] \
+choice="`timedatectl list-timezones | grep './.' | osel`" \
&& sudo timedatectl set-timezone "$choice" \
&& notify-send -a "${0##*/}" -u normal 'Timezone changed' \
"The system timezone was changed to ‘$choice’."