Checked for interactive so no ugly messages during test suite.
Ken Youens-Clark [Wed, 15 Apr 2009 18:12:51 +0000 (18:12 +0000)]
lib/SQL/Translator/Producer/TT/Table.pm

index 53d5df3..35f9d65 100644 (file)
@@ -260,7 +260,9 @@ sub write_file {
         }
     }
     else {
-        warn "Creating $file.\n";
+        if ( my $interactive = -t STDIN && -t STDOUT ) {
+            warn "Creating $file.\n";
+        }
     }
 
     my ($dir) = $file =~ m!^(.*)/!; # Want greedy, eveything before the last /