From fc9f098c174a3e80dfe80567ee93c2bcb9e90266 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 30 Sep 2023 16:17:21 +0000 Subject: [PATCH] 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*) --- t/lei-convert.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.2