From: <sco...@us...> - 2010-06-16 15:42:04
|
Revision: 23402 http://gmod.svn.sourceforge.net/gmod/?rev=23402&view=rev Author: scottcain Date: 2010-06-16 15:41:52 +0000 (Wed, 16 Jun 2010) Log Message: ----------- non interactive materialized view creation now works; should add a --quiet mode now Modified Paths: -------------- schema/trunk/chado/bin/gmod_materialized_view_tool.pl Modified: schema/trunk/chado/bin/gmod_materialized_view_tool.pl =================================================================== --- schema/trunk/chado/bin/gmod_materialized_view_tool.pl 2010-06-16 15:41:18 UTC (rev 23401) +++ schema/trunk/chado/bin/gmod_materialized_view_tool.pl 2010-06-16 15:41:52 UTC (rev 23402) @@ -875,9 +875,11 @@ my $error_msg = $args->{regexp_error}; $error_msg ||= "Invalid format, try again"; while ( !$valid ) { - print "\n" . $args->{prompt}; - $resp = <STDIN>; - chomp $resp; + unless ($resp) { + print "\n" . $args->{prompt}; + $resp = <STDIN>; + chomp $resp; + } if ( exists( $args->{test} ) ) { $valid = 1 if $args->{test}->($resp); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |