From 2a8341919631bcf8af780f686675ca087b9da781 Mon Sep 17 00:00:00 2001 From: Tyler Kelley Date: Sat, 2 Mar 2024 15:29:19 -0600 Subject: [PATCH] Make read silent for password entries --- install-zaneyos.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-zaneyos.sh b/install-zaneyos.sh index 3bf4b7d..2a0bcc3 100755 --- a/install-zaneyos.sh +++ b/install-zaneyos.sh @@ -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)