mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-23 21:30:17 +00:00
Fix error when reading in new password
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
parent
46356d3027
commit
e4cbf5023a
1 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ SetWebPassword() {
|
|||
# Prevents a bug if the user presses Ctrl+C and it continues to hide the text typed.
|
||||
# So we reset the terminal via stty if the user does press Ctrl+C
|
||||
trap '{ echo -e "\nNo password will be set" ; stty sane ; exit 1; }' INT
|
||||
read -s -p -r "Enter New Password (Blank for no password): " PASSWORD
|
||||
read -s -p "Enter New Password (Blank for no password): " PASSWORD
|
||||
echo ""
|
||||
|
||||
if [ "${PASSWORD}" == "" ]; then
|
||||
|
@ -119,7 +119,7 @@ SetWebPassword() {
|
|||
exit 0
|
||||
fi
|
||||
|
||||
read -s -p -r "Confirm Password: " CONFIRM
|
||||
read -s -p "Confirm Password: " CONFIRM
|
||||
echo ""
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue