Ignore output from stty for portability (e.g. Windows).

This commit is contained in:
Ville Skyttä 2011-04-02 14:56:42 +03:00
parent 46bdd402f4
commit 32b1eb2111

View file

@ -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";