mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 19:40:55 +00:00
Update easy-arch.sh
This commit is contained in:
parent
4247de265d
commit
9016834331
1 changed files with 6 additions and 6 deletions
12
easy-arch.sh
12
easy-arch.sh
|
|
@ -134,15 +134,15 @@ lukspass_selector () {
|
|||
return 0
|
||||
}
|
||||
|
||||
# User enters a password for the user account (function).
|
||||
# Setting up a password for the user account (function).
|
||||
userpass_selector () {
|
||||
read -r -s -p "Set a user password for $username: " userpass
|
||||
read -r -s -p "Insert a user password for $username (you're not going to see it): " userpass
|
||||
if [ -z "$userpass" ]; then
|
||||
incEcho "\nYou need to enter a password for $username."
|
||||
return 1
|
||||
fi
|
||||
echo
|
||||
read -r -s -p "Insert password again: " userpass2
|
||||
read -r -s -p "Insert the password again (for double checking): " userpass2
|
||||
echo
|
||||
if [ "$userpass" != "$userpass2" ]; then
|
||||
incEcho "Passwords don't match, try again."
|
||||
|
|
@ -151,15 +151,15 @@ userpass_selector () {
|
|||
return 0
|
||||
}
|
||||
|
||||
# User enters a password for the root account (function).
|
||||
# Setting up a password for the root account (function).
|
||||
rootpass_selector () {
|
||||
read -r -s -p "Set a root password: " rootpass
|
||||
read -r -s -p "Insert a user password for the root user (you're not going to see it): " rootpass
|
||||
if [ -z "$rootpass" ]; then
|
||||
incEcho "\nYou need to enter a root password."
|
||||
return 1
|
||||
fi
|
||||
echo
|
||||
read -r -s -p "Password (again): " rootpass2
|
||||
read -r -s -p "Insert the password again (for double checking): " rootpass2
|
||||
echo
|
||||
if [ "$rootpass" != "$rootpass2" ]; then
|
||||
incEcho "Passwords don't match, try again."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue