mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 19:40:55 +00:00
Fixing username issue.
This commit is contained in:
parent
d2d9a43af8
commit
092b429d5d
1 changed files with 5 additions and 2 deletions
|
|
@ -125,7 +125,7 @@ lukspass_selector () {
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
read -r -s -p "Insert the password for the LUKS container again: " password2
|
read -r -s -p "Insert the password for the LUKS container again (you're not going to see the password): " password2
|
||||||
echo
|
echo
|
||||||
if [ "$password" != "$password2" ]; then
|
if [ "$password" != "$password2" ]; then
|
||||||
incEcho "Passwords don't match, please try again."
|
incEcho "Passwords don't match, please try again."
|
||||||
|
|
@ -136,7 +136,10 @@ lukspass_selector () {
|
||||||
|
|
||||||
# Setting up a password for the user account (function).
|
# Setting up a password for the user account (function).
|
||||||
userpass_selector () {
|
userpass_selector () {
|
||||||
read -r -s -p "Insert a user password for $username (you're not going to see it): " userpass
|
if [ -z "$username" ]; then
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
read -r -s -p "Insert a user password for $username (you're not going to see the password): " userpass
|
||||||
if [ -z "$userpass" ]; then
|
if [ -z "$userpass" ]; then
|
||||||
incEcho "\nYou need to enter a password for $username."
|
incEcho "\nYou need to enter a password for $username."
|
||||||
return 1
|
return 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue