This commit is contained in:
Jacob Salmela 2017-07-06 20:44:40 -05:00
parent c3ed710e31
commit 042dcf795c
No known key found for this signature in database
GPG key ID: 1962FF1A5046135E

View file

@ -89,6 +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.
# 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
read -s -p "Enter New Password (Blank for no password): " PASSWORD
echo ""