summaryrefslogtreecommitdiff
path: root/FS/bin
diff options
context:
space:
mode:
authorivan <ivan>2008-05-30 01:33:50 +0000
committerivan <ivan>2008-05-30 01:33:50 +0000
commitf3c456bae0314d53900bce1e2c512e8c55667dc4 (patch)
tree355f9d4cbac665cd5aa668845be8cde09abd98cf /FS/bin
parent3eea1ba4701cbf02716238b4998216f67ef52ade (diff)
don't print out the cust_credit_refund pruning every time
Diffstat (limited to 'FS/bin')
-rwxr-xr-xFS/bin/freeside-upgrade9
1 files changed, 3 insertions, 6 deletions
diff --git a/FS/bin/freeside-upgrade b/FS/bin/freeside-upgrade
index 85bf68af6..f3c446169 100755
--- a/FS/bin/freeside-upgrade
+++ b/FS/bin/freeside-upgrade
@@ -70,12 +70,9 @@ if ( $DRY_RUN ) {
my $hashref = {};
$hashref->{dry_run} = 1 if $DRY_RUN;
-$hashref->{debug} = 1 if $DEBUG;
-if ( $DRY_RUN ) {
- print join "\n", prune_applications($hashref) unless $opt_s;
-} else {
- prune_applications($hashref) unless $opt_s;
-}
+$hashref->{debug} = 1 if $DEBUG && $DRY_RUN;
+prune_applications($hashref) unless $opt_s;
+
print "\n" if $DRY_RUN;
if ( $dbh->{Driver}->{Name} =~ /^mysql/i && ! $opt_s ) {