#dialog that explains what will happen & create $USER, with option to cancel
apk add bash bash-completion dialog
TITLE="Pyrenee Conversion Utility"
dialog --colors --backtitle "\Z7$TITLE" --title "WELCOME!" --yes-label "OK" --msgbox "Welcome to the Pyrenee Conversion Utility.\n\nThis utility will make a number of (mostly reversible) changes to your system. It should be run directly after installing Alpine Linux, which will setup the foundation we build upon."1050
dialog --colors --backtitle "\Z7$TITLE" --title "Confirmation" --yes-label "Enter" --no-label "Esc" --yesno "Please press <Enter> to start conversion or <Esc> to cancel."1050
@ -14,7 +15,8 @@ else
dialog --colors --backtitle "\Z7$TITLE" --form "Please supply the required information:\n(username can only contain small letters)"10503"Full Name:"10""110150"Username:"20""210150 2>input &&FULLNAME=$(sed -n '1p' input)&&USER=$(sed -n '2p' input | sed 's/[A-Z]/\L&/g')&& rm -f input
dialog --colors --backtitle "\Z7$TITLE" --title "Finished!" --yes-label "Enter" --no-label "Esc" --yesno "Conversion was completed, it is recommended to reboot to enter your new Desktop experience!\n\nPlease press <Enter> to reboot or <Esc> to continue your current session."1050