Cosmetics again.

This commit is contained in:
Tommaso Chiti 2022-05-27 15:16:48 +02:00
parent 72eab02efa
commit 3a6a4cc36d

View file

@ -134,14 +134,14 @@ userpass_selector () {
fi fi
read -r -s -p "Insert a user password for $username (you're not going to see the password): " userpass 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 "You need to enter a password for $username." incEcho "You need to enter a password for $username in order to continue."
return 1 return 1
fi fi
echo echo
read -r -s -p "Insert the password again (for double checking): " userpass2 read -r -s -p "Insert the password again (you're not going to see the password): " userpass2
echo echo
if [[ "$userpass" != "$userpass2" ]]; then if [[ "$userpass" != "$userpass2" ]]; then
incEcho "Passwords don't match, try again." incEcho "Passwords don't match, please try again."
return 1 return 1
fi fi
return 0 return 0