From 357f88dd77ad0e34975250b3314c64d8ea53bdad Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 30 Sep 2018 21:02:13 +0100 Subject: [PATCH 1/1] i18n: i18n-diff-auditor: fix debug Signed-off-by: Ian Jackson --- i18n-diff-auditor | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/i18n-diff-auditor b/i18n-diff-auditor index 8fd623a5..f40c8e97 100755 --- a/i18n-diff-auditor +++ b/i18n-diff-auditor @@ -4,15 +4,14 @@ use Carp; use Data::Dumper; use Getopt::Long; -open DEBUG, ">/dev/null" or die $!; - -GetOptions("debug|D" => sub { open DEBUG, ">&2" or die $!; } +our $debug = 0; +GetOptions("debug|D+" => \$debug ); our @debug; sub debug ($$) { my ($i,$s) = @_; - push @{ $debug[$i] }, $s; + push @{ $debug[$i] }, $s if $debug; } my @d = <>; -- 2.30.2