fix timezone dialog to only show directories in /usr/share/zoneinfo

pull/3/head
Amy 3 years ago
parent 8255e1d8ec
commit bfb825385a
No known key found for this signature in database
GPG Key ID: 6672E6DD65BEA50B

@ -253,16 +253,19 @@ while [[ ! -f $TZ ]]; do
TZ="/usr/share/zoneinfo/${PT}" TZ="/usr/share/zoneinfo/${PT}"
done 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\") #var=$(echo \"$var\")
#loc1=$(dialog --title "Citrine" --menu "Please pick a time zone" 20 100 43 $var "" --stdout) #loc1=$(dialog --title "Citrine" --menu "Please pick a time zone" 20 100 43 $var "" --stdout)
#loc1=$(echo $loc1 | sed 's/"//g')
#var1=$(ls /usr/share/zoneinfo/$loc1 | sed 's/ /" "" "/g') #cd /usr/share/zoneinfo/$loc1
#var1=$(echo $var1 | sed 's/ /" "" "/g') #var1=$(echo * | sed 's/\///g' | sed 's/ /" "" "/g')
#var1=$(echo \"$var1\") #var1=$(echo \"$var1\")
#loc2=$(dialog --title "Citrine" --menu "Please pick a time zone" 20 100 43 $var1 "" --stdout) #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" #TZ="/usr/share/zoneinfo/$loc1/$loc2"
#cd /
arch-chroot /mnt ln-sf $TZ /etc/localtime arch-chroot /mnt ln-sf $TZ /etc/localtime
inf "Set TZ to ${TZ}" inf "Set TZ to ${TZ}"

Loading…
Cancel
Save