projects
/
dbsrgits/SQL-Translator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
eca76a5
)
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
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Translator/Producer/TT/Table.pm
b/lib/SQL/Translator/Producer/TT/Table.pm
index
53d5df3
..
35f9d65
100644
(file)
--- a/
lib/SQL/Translator/Producer/TT/Table.pm
+++ b/
lib/SQL/Translator/Producer/TT/Table.pm
@@
-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 /