Ignore output from stty for portability (e.g. Windows).
This commit is contained in:
parent
46bdd402f4
commit
32b1eb2111
1 changed files with 2 additions and 2 deletions
|
@ -308,9 +308,9 @@ sub mysql_setup {
|
||||||
print STDERR "Please enter your MySQL administrative login: ";
|
print STDERR "Please enter your MySQL administrative login: ";
|
||||||
my $name = <>;
|
my $name = <>;
|
||||||
print STDERR "Please enter your MySQL administrative password: ";
|
print STDERR "Please enter your MySQL administrative password: ";
|
||||||
system("stty -echo");
|
system("stty -echo >/dev/null 2>&1");
|
||||||
my $password = <>;
|
my $password = <>;
|
||||||
system("stty echo");
|
system("stty echo >/dev/null 2>&1");
|
||||||
chomp($password);
|
chomp($password);
|
||||||
chomp($name);
|
chomp($name);
|
||||||
$mysqllogin = "-u $name";
|
$mysqllogin = "-u $name";
|
||||||
|
|
Loading…
Reference in a new issue