From fb66fb12c569987f19edf1cc0df1805131577584 Mon Sep 17 00:00:00 2001 From: Jacob Salmela Date: Thu, 6 Jul 2017 20:54:09 -0500 Subject: [PATCH] put "no password will be set" on a newline. --- 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 c8a31f82..5aae18f7 100755 --- a/advanced/Scripts/webpage.sh +++ b/advanced/Scripts/webpage.sh @@ -89,9 +89,9 @@ SetWebPassword() { readonly PASSWORD="${args[2]}" readonly CONFIRM="${PASSWORD}" else - # Prevnts a bug if the user presses Ctrl+C and it continues to hide the text typed. + # 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 "No password will be set" ; stty sane ; exit 1; }' INT + trap '{ echo -e "\nNo password will be set" ; stty sane ; exit 1; }' INT read -s -p "Enter New Password (Blank for no password): " PASSWORD echo ""