Skip to content

Commit

Permalink
Ignore output from stty for portability (e.g. Windows).
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Apr 2, 2011
1 parent 46bdd40 commit 32b1eb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mysqltuner.pl
Expand Up @@ -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";
Expand Down

0 comments on commit 32b1eb2

Please sign in to comment.