mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-05 23:20:17 +00:00
fix for escape char
This commit is contained in:
parent
458c333c2a
commit
a436d55f23
1 changed files with 2 additions and 2 deletions
|
@ -108,7 +108,7 @@ SetWebPassword() {
|
||||||
# Prevents 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
|
# 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
|
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 "Enter New Password \(Blank for no password\): " PASSWORD
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
if [ "${PASSWORD}" == "" ]; then
|
if [ "${PASSWORD}" == "" ]; then
|
||||||
|
@ -609,7 +609,7 @@ main() {
|
||||||
"-sc" ) ClearSpeedtestData;;
|
"-sc" ) ClearSpeedtestData;;
|
||||||
"-ss" ) SpeedtestServer;;
|
"-ss" ) SpeedtestServer;;
|
||||||
"audit" ) audit;;
|
"audit" ) audit;;
|
||||||
* ) helpFunc;;
|
"*" ) helpFunc;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
shift
|
shift
|
||||||
|
|
Loading…
Add table
Reference in a new issue