From: Eric Wong Date: Sat, 30 Sep 2023 16:17:21 +0000 (+0000) Subject: t/lei-convert: fix uninitialized variable w/o pigz X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc9f098c174a3e80dfe80567ee93c2bcb9e90266;p=thirdparty%2Fpublic-inbox.git t/lei-convert: fix uninitialized variable w/o pigz `backtick` captures return `undef' when a command is missing Fixes: 5df0446abcca (lei: don't gzip --rsyncable by default for mbox*) --- diff --git a/t/lei-convert.t b/t/lei-convert.t index d75110cbe..84b57f81d 100644 --- a/t/lei-convert.t +++ b/t/lei-convert.t @@ -132,7 +132,7 @@ test_lei({ tmpdir => $tmpdir }, sub { SKIP: { my $ok; for my $x (($ENV{GZIP}//''), qw(pigz gzip)) { - $x && `$x -h 2>&1` =~ /--rsyncable\b/s or next; + $x && (`$x -h 2>&1`//'') =~ /--rsyncable\b/s or next; $ok = $x; last; }