From b82f8aa97465c6b2ffa094d9f42e5c44d58e5d51 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 5 Feb 2020 16:05:19 +0100 Subject: [PATCH] Bug 24526: Set verbose if confirm not set Signed-off-by: Jonathan Druart --- misc/cronjobs/automatic_renewals.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/cronjobs/automatic_renewals.pl b/misc/cronjobs/automatic_renewals.pl index b612eef0c7..599576994e 100755 --- a/misc/cronjobs/automatic_renewals.pl +++ b/misc/cronjobs/automatic_renewals.pl @@ -83,6 +83,7 @@ cronlogaction(); my $auto_renews = Koha::Checkouts->search({ auto_renew => 1 }); my %report; +$verbose = 1 unless $verbose or $confirm; print "Test run only\n" unless $confirm; while ( my $auto_renew = $auto_renews->next ) { -- 2.11.0