POSIX read -s fix

This commit is contained in:
Harold Paulson 2020-10-11 21:17:27 -07:00
parent a7c4c23235
commit 89313a3e89

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