| 1 | Description: Use environment variable to prevent interactive prompt. |
| 2 | Author: Bas Couwenberg <[email protected]> |
| 3 | Forwarded: not-needed |
| 4 | |
| 5 | --- a/Makefile.PL |
| 6 | +++ b/Makefile.PL |
| 7 | @@ -21,6 +21,7 @@ WriteMakefile( |
| 8 | |
| 9 | sub get_sql_data { |
| 10 | my $ans = "abc"; |
| 11 | + $ans = $ENV{HAVE_MYSQL} if($ENV{HAVE_MYSQL}); |
| 12 | do { |
| 13 | print "Do you have write access to a MySQL database server? [n] "; |
| 14 | $ans=<STDIN>; chomp $ans; |