X-Git-Url: https://git.exim.org/users/heiko/exim.git/blobdiff_plain/3b3634d02b4845cc9469423b82f6fa8ab47c3ede..9214c762c1b3717ff92351c8a217cee6726d993b:/test/lib/Exim/Runtest.pm diff --git a/test/lib/Exim/Runtest.pm b/test/lib/Exim/Runtest.pm index 32537f543..ce91084f4 100644 --- a/test/lib/Exim/Runtest.pm +++ b/test/lib/Exim/Runtest.pm @@ -119,7 +119,7 @@ sub flavour { if (open(my $f, '<', "$etc/os-release")) { local $_ = join '', <$f>; my ($id) = /^ID="?(.*?)"?\s*$/m; - my ($version) = /^VERSION_ID="?(.*?)"?\s*$/m; + my $version = /^VERSION_ID="?(.*?)"?\s*$/m ? $1 : ''; return "$id$version"; }