From 3de83e5e5f5dc3ccf68bb612cd8b0738b843672e Mon Sep 17 00:00:00 2001 From: Vladimir Sokolovsky Date: Mon, 3 Nov 2008 17:29:43 +0200 Subject: [PATCH] Fix $subdistro definition on OpenSuSE. Signed-off-by: Vladimir Sokolovsky --- install.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/install.pl b/install.pl index d12cff7..905ee20 100755 --- a/install.pl +++ b/install.pl @@ -92,9 +92,6 @@ my $dist_rpm_rel = 0; # Set Linux Distribution if ( -f "/etc/SuSE-release" ) { $distro = "SuSE"; - if ($dist_rpm =~ /openSUSE/) { - $subdistro = "openSUSE"; - } } elsif ( -f "/etc/fedora-release" ) { if ($kernel =~ m/fc6/) { @@ -161,6 +158,10 @@ else { } chomp $dist_rpm; +if ($dist_rpm =~ /openSUSE/) { + $subdistro = "openSUSE"; +} + my $WDIR = dirname($0); chdir $WDIR; my $CWD = getcwd; -- 2.46.0