Make read silent for password entries

This commit is contained in:
Tyler Kelley 2024-03-02 15:29:19 -06:00
parent 831f5fc82f
commit 2a83419196

View File

@ -68,8 +68,8 @@ else
if [ $installusername != $userName ]; then
echo "This will create a hashedPassword for the new user in the options file."
while true; do
read -p "Enter New User Password: " newPass
read -p "Enter New User Password Again: " newPass2
read -s -p "Enter New User Password: " newPass
read -s -p "Enter New User Password Again: " newPass2
if [ $newPass == $newPass2 ]; then
echo "Passwords Match. Setting password."
userPassword=$(mkpasswd -m sha-512 $newPass)