From 02e4686ccd7c95c6df855be61496c75c92b11396 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 6 Dec 2023 01:30:57 +0100 Subject: scripts: Move many scripts from sh to andy --- .local/sbin/chtz | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to '.local/sbin/chtz') diff --git a/.local/sbin/chtz b/.local/sbin/chtz index 2a02e79..2033ab2 100755 --- a/.local/sbin/chtz +++ b/.local/sbin/chtz @@ -1,10 +1,8 @@ -#!/bin/sh +#!/usr/local/bin/andy -set -e +set -e NOTIFY_LONG timezone +set -e NOTIFY_SHORT chtz -export NOTIFY_LONG=timezone -export NOTIFY_SHORT="${0##*/}" - -choice="$(timedatectl list-timezones | grep './.' | osel)" \ -&& sudo timedatectl set-timezone "$choice" \ +set choice `timedatectl list-timezones | grep ./. | osel +sudo timedatectl set-timezone $choice && notify 'Timezone Changed' "The system timezone was changed to ‘$choice’" -- cgit v1.2.3