Fix warning "Use of uninitialized value $VERBOSE in numeric ge (>=) at scripts/rt-bulk-prep-pay.plx line 32".

This commit is contained in:
Paul Visscher 2025-10-02 20:18:47 -04:00
parent b163e59f98
commit dd917b31ef

View file

@ -96,7 +96,9 @@ sub GetStatusOfTicket ($) {
GetOptions("verbose=i" => \$VERBOSE, "interactive" => \$INTERACTIVE, 'showAmounts' => \$SHOW_AMOUNTS,
'subTotals' => \$SUB_TOTALS,
"rtCommand=s" => \$RT_CMD, "svnCommand=s" => \$SVN_CMD, 'queryString=s' => \$QUERY_STRING);
$SHOW_AMOUNTS = 1 if $SUB_TOTALS;
$VERBOSE = 0 unless $VERBOSE;
$RT_CMD = '/usr/bin/rt' unless defined $RT_CMD;
$SVN_CMD = '/usr/bin/svn' unless defined $SVN_CMD;