POSIX read -s fix

master
Harold Paulson 2020-10-11 21:17:27 -07:00
parent a7c4c23235
commit 89313a3e89
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ cp mysqlbackup /usr/local/bin/
chmod 755 /usr/local/bin/mysqlbackup chmod 755 /usr/local/bin/mysqlbackup
if [ ! -f /root/.my.cnf ]; then 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 <<EOF >> /tmp/.my.cfg cat <<EOF >> /tmp/.my.cfg
[client] [client]
user=root user=root