diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-08-25 01:09:10 +0300 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-08-25 01:09:10 +0300 |
commit | 4817c1bc0222f7172d1acb9c18912a7e6f36a3c7 (patch) | |
tree | 866b26eb026059150f3cfbcbe3626b9cd09bdd36 /.local/sbin | |
parent | a6afe32f76cfaaaf52befba24c5634e1f3ed1912 (diff) |
bin/sbin: Refactor shell scripts
Diffstat (limited to '.local/sbin')
-rwxr-xr-x | .local/sbin/stz | 4 |
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’." |