From 7711426c6b69f2546f9e9b5db777c95007b24140 Mon Sep 17 00:00:00 2001 From: Vladimir Sokolovsky Date: Sun, 17 Feb 2008 15:48:44 +0200 Subject: [PATCH] '/etc/issue' is included as a part of some RPMs (non-standard). Signed-off-by: Vladimir Sokolovsky --- install.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.pl b/install.pl index 354e896..c5128d8 100755 --- a/install.pl +++ b/install.pl @@ -125,7 +125,7 @@ my $dist_rpm_ver = 0; my $dist_rpm_rel = 0; if (-f "/etc/issue") { - $dist_rpm = `rpm -qf /etc/issue`; + $dist_rpm = `rpm -qf /etc/issue | cut -d ' ' -f 1`; chomp $dist_rpm; $dist_rpm_ver = get_rpm_ver_inst($dist_rpm); $dist_rpm_rel = get_rpm_rel_inst($dist_rpm); -- 2.41.0