From 8684356b4486f77bc7c49dd5e08620d2a20aa975 Mon Sep 17 00:00:00 2001 From: mrmajik45 <35823544+mrmajik45@users.noreply.github.com> Date: Wed, 26 Sep 2018 10:31:44 -0400 Subject: [PATCH] read without -r will mangle backslashes. --- advanced/Scripts/webpage.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/advanced/Scripts/webpage.sh b/advanced/Scripts/webpage.sh index c3dede05..283e60d5 100755 --- a/advanced/Scripts/webpage.sh +++ b/advanced/Scripts/webpage.sh @@ -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 "Enter New Password (Blank for no password): " PASSWORD + read -s -p -r "Enter New Password (Blank for no password): " PASSWORD echo "" if [ "${PASSWORD}" == "" ]; then @@ -119,7 +119,7 @@ SetWebPassword() { exit 0 fi - read -s -p "Confirm Password: " CONFIRM + read -s -p -r "Confirm Password: " CONFIRM echo "" fi