Fix to lowercase output when testing 23adcc8bc0

This commit is contained in:
Ilia Rostovtsev
2021-01-23 15:06:43 +03:00
parent deab9a1250
commit 64d77ae6e7

View File

@@ -549,7 +549,7 @@ elsif ($init_mode eq "systemd") {
else {
my $out = &backquote_command("systemctl is-enabled ".
quotemeta($unit)." 2>&1");
if ($out =~ /no such file/i) {
if (lc($out) =~ /no such file/) {
return 0;
}
else {