From 4817c1bc0222f7172d1acb9c18912a7e6f36a3c7 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 25 Aug 2023 01:09:10 +0300 Subject: bin/sbin: Refactor shell scripts --- .local/sbin/stz | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to '.local/sbin/stz') 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’." -- cgit v1.2.3