Browse Source

Update pyrenee-conversion-utility.sh

main
Chris Druif 2 years ago
parent
commit
15f4dd72a4
  1. 2
      pyrenee-conversion-utility.sh

2
pyrenee-conversion-utility.sh

@ -11,7 +11,7 @@ SIZE2="20 75"
dialog $BACK "$TITLE" --title "WELCOME!" $MSG "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 3.15, which will setup the foundation we build upon." $SIZE
dialog $BACK "$TITLE" --form "Please supply the required information:\n(username can only contain small letters)" $SIZE 3 "Full Name:" 1 0 "" 1 11 60 0 " username:" 2 0 "" 2 11 60 0 2>input && FULLNAME=$(sed -n '1p' input) && USER=$(sed -n '2p' input | sed 's/[A-Z]/\L&/g') && rm -f input
dialog $BACK "$TITLE" --form "Please supply the required information:\n(username can only contain small letters)" $SIZE 3 "Full Name:" 1 0 "" 1 11 60 0 "username :" 2 0 "" 2 11 60 0 2>input && FULLNAME=$(sed -n '1p' input) && USER=$(sed -n '2p' input | sed 's/[A-Z]/\L&/g') && rm -f input
#Return status of non-zero indicates cancel
if [ "$?" != "0" ] || [ "$USER" = "" ] || [ "$FULLNAME" = "" ]
then

Loading…
Cancel
Save