Permalink
Browse files

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

  • Loading branch information...
1 parent 46bdd40 commit 32b1eb211157802ca80e36c2a6ccd0f9176616d1 @scop scop committed Apr 2, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 mysqltuner.pl
View
@@ -308,9 +308,9 @@ sub mysql_setup {
print STDERR "Please enter your MySQL administrative login: ";
my $name = <>;
print STDERR "Please enter your MySQL administrative password: ";
- system("stty -echo");
+ system("stty -echo >/dev/null 2>&1");
my $password = <>;
- system("stty echo");
+ system("stty echo >/dev/null 2>&1");
chomp($password);
chomp($name);
$mysqllogin = "-u $name";

0 comments on commit 32b1eb2

Please sign in to comment.