From 4bbb5bd7d322098b8a2ffb9fd7609df986db1ffb Mon Sep 17 00:00:00 2001 From: cxhong Date: Mon, 27 Apr 2020 15:50:49 -0400 Subject: [PATCH] create rh8 rpmbuild dir --- ipmitool/bldipmi.pl | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ipmitool/bldipmi.pl b/ipmitool/bldipmi.pl index a2cd585..52879be 100755 --- a/ipmitool/bldipmi.pl +++ b/ipmitool/bldipmi.pl @@ -60,7 +60,7 @@ if ( (! -f "$pwd/ipmitool-$version.tar.gz") my $blddir; if ($os eq "rh5") { $blddir = "/usr/src/redhat"; -} elsif (($os eq "rh6") || ($os eq "rh7")) { +} elsif ($os =~ /rh\d/) { $blddir = "/root/rpmbuild"; } elsif ($os =~ /sles1\d/) { $blddir = "/usr/src/packages"; @@ -119,12 +119,6 @@ if (! -f $objrpm) { exit 0; } - - - - - - sub runcmd () { my $cmd = shift; print "++++Trying to run command: [$cmd]\n";