From bfb825385a8db9b114411e4aa235c51962043d13 Mon Sep 17 00:00:00 2001 From: Amy Date: Thu, 11 Nov 2021 21:04:07 +0100 Subject: [PATCH] fix timezone dialog to only show directories in /usr/share/zoneinfo --- citrine.internal.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/citrine.internal.sh b/citrine.internal.sh index d202853..63e8e88 100755 --- a/citrine.internal.sh +++ b/citrine.internal.sh @@ -253,16 +253,19 @@ while [[ ! -f $TZ ]]; do TZ="/usr/share/zoneinfo/${PT}" done -#var=$(ls /usr/share/zoneinfo/ | sed 's/ /" "" "/g') -#var=$(echo $var | sed 's/ /" "" "/g') + +#cd /usr/share/zoneinfo/ +#var=$(echo */ | sed 's/\///g' | sed 's/ /" "" "/g') #var=$(echo \"$var\") #loc1=$(dialog --title "Citrine" --menu "Please pick a time zone" 20 100 43 $var "" --stdout) - -#var1=$(ls /usr/share/zoneinfo/$loc1 | sed 's/ /" "" "/g') -#var1=$(echo $var1 | sed 's/ /" "" "/g') +#loc1=$(echo $loc1 | sed 's/"//g') +#cd /usr/share/zoneinfo/$loc1 +#var1=$(echo * | sed 's/\///g' | sed 's/ /" "" "/g') #var1=$(echo \"$var1\") #loc2=$(dialog --title "Citrine" --menu "Please pick a time zone" 20 100 43 $var1 "" --stdout) +#loc2=$(echo $loc1 | sed 's/"//g') #TZ="/usr/share/zoneinfo/$loc1/$loc2" +#cd / arch-chroot /mnt ln-sf $TZ /etc/localtime inf "Set TZ to ${TZ}"