From 89313a3e896147e0cd00a0be8a7e4be8d164ebb8 Mon Sep 17 00:00:00 2001 From: Harold Paulson Date: Sun, 11 Oct 2020 21:17:27 -0700 Subject: [PATCH] POSIX read -s fix --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index a05df80..f804f3f 100755 --- a/install.sh +++ b/install.sh @@ -4,7 +4,7 @@ cp mysqlbackup /usr/local/bin/ chmod 755 /usr/local/bin/mysqlbackup if [ ! -f /root/.my.cnf ]; then - read -s -p "Enter the root MySQL Password: " MYSQL_PASS; + echo -n "Enter the root MySQL Password: " && stty -echo && read MYSQL_PASS && echo "" cat <> /tmp/.my.cfg [client] user=root