first step in making the timezone select with dialog, still commented out as it still needs fixing
parent
262f6d9d49
commit
02f1f4fb16
@ -0,0 +1,12 @@
|
|||||||
|
var=$(ls /usr/share/zoneinfo/ | sed 's/ /" "" "/g')
|
||||||
|
var=$(echo $var | sed 's/ /" "" "/g')
|
||||||
|
var=$(echo \"$var\")
|
||||||
|
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')
|
||||||
|
var1=$(echo $var1 | sed 's/ /" "" "/g')
|
||||||
|
var1=$(echo \"$var1\")
|
||||||
|
loc2=$(dialog --title "Citrine" --menu "Please pick a time zone" 20 100 43 $var1 "" --stdout)
|
||||||
|
loc2=$(echo $loc2 | sed 's/"//g')
|
||||||
|
TZ="/usr/share/zoneinfo/$loc1/$loc2"
|
||||||
|
echo $TZ
|
Loading…
Reference in New Issue