@ -25,18 +25,12 @@ if [[ $CONTINUE != "true" ]]; then
fi
fi
timezone=$(timedatectl list-timezones | gum filter --placeholder "select a timezone")
timezone=$(timedatectl list-timezones | gum filter --placeholder "select a timezone")
echo "timezone: $timezone"
keymap=$(localectl list-keymaps | gum filter --placeholder "select a keymap")
keymap=$(localectl list-keymaps | gum filter --placeholder "select a keymap")
echo "keymap: $keymap"
locale=$(cat locales | gum filter --placeholder "select a locale")
locale=$(cat locales | gum filter --placeholder "select a locale")
echo "locale: $locale"
clear
clear
gum style --border normal --margin "1" --padding "1 2" --border-foreground 212 "Please enter your username"
gum style --border normal --margin "1" --padding "1 2" --border-foreground 212 "Please enter your username"
username=$(gum input --placeholder "Please enter your username")
username=$(gum input --placeholder "Please enter your username")
echo "username: $username"
clear
clear
gum style --border normal --margin "1" --padding "1 2" --border-foreground 212 "Select a default shell"
gum style --border normal --margin "1" --padding "1 2" --border-foreground 212 "Select a default shell"
@ -52,7 +46,6 @@ while [[ "$matches" == "false" ]]; do
gum style --border normal --margin "1" --padding "1 2" --border-foreground 212 "Now enter your password"
gum style --border normal --margin "1" --padding "1 2" --border-foreground 212 "Now enter your password"
fi
fi
password=$(gum input --password --placeholder "Please enter a password")
password=$(gum input --password --placeholder "Please enter a password")
echo "password: $password"
clear
clear
gum style --border normal --margin "1" --padding "1 2" --border-foreground 212 "Verify your password"
gum style --border normal --margin "1" --padding "1 2" --border-foreground 212 "Verify your password"
password_verif=$(gum input --password --placeholder "Type your password again")
password_verif=$(gum input --password --placeholder "Type your password again")
@ -68,7 +61,6 @@ clear
different_root_password=true
different_root_password=true
gum confirm "$(gum style --border normal --margin '1' --padding '1 2' --border-foreground 212 'Use same password for root?')" && different_root_password=false
gum confirm "$(gum style --border normal --margin '1' --padding '1 2' --border-foreground 212 'Use same password for root?')" && different_root_password=false
if [[ $different_root_password != "true" ]]; then
if [[ $different_root_password != "true" ]]; then
echo "same password as user"
root_password=${password}
root_password=${password}
else
else
root_matches="false"
root_matches="false"
@ -81,7 +73,6 @@ else
gum style --border normal --margin "1" --padding "1 2" --border-foreground 212 "Now enter your root password"
gum style --border normal --margin "1" --padding "1 2" --border-foreground 212 "Now enter your root password"
fi
fi
root_password=$(gum input --password --placeholder "Please enter a root password")
root_password=$(gum input --password --placeholder "Please enter a root password")
echo "root password: $root_password"
clear
clear
gum style --border normal --margin "1" --padding "1 2" --border-foreground 212 "Verify your root password"
gum style --border normal --margin "1" --padding "1 2" --border-foreground 212 "Verify your root password"
root_password_verif=$(gum input --password --placeholder "Type your root password again")
root_password_verif=$(gum input --password --placeholder "Type your root password again")
@ -101,13 +92,11 @@ hostname=$(gum input --placeholder "Please enter a hostname")
clear
clear
gum style --border normal --margin "1" --padding "1 2" --border-foreground 212 "Please select the disk to install to" "$(gum style --foreground 212 'WARNING: This will erease the whole disk')"
gum style --border normal --margin "1" --padding "1 2" --border-foreground 212 "Please select the disk to install to" "$(gum style --foreground 212 'WARNING: This will erease the whole disk')"
disk_dev=$(lsblk -pdo name | grep -v zram | grep -v NAME | grep -v loop | grep -v sr | gum choose --limit 1)
disk_dev=$(lsblk -pdo name | grep -v zram | grep -v NAME | grep -v loop | grep -v sr | gum choose --limit 1)