2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-14 02:10:23 +00:00

remove wildcard to extract kit tar file

This commit is contained in:
Casandra Qiu
2016-02-10 15:34:25 -05:00
parent a6a8d1cf94
commit f3123ae232

View File

@ -1249,10 +1249,8 @@ sub addkit
my %rsp;
push@{ $rsp{data} }, "Extract Kit $kit to /tmp/tmpkit";
xCAT::MsgUtils->message( "I", \%rsp, $callback );
$rc = system("tar jxvf $kit -C /tmp/tmpkit/ --wildcards */kit.conf");
} else {
$rc = system("tar jxf $kit -C /tmp/tmpkit/ --wildcards */kit.conf");
}
$rc = system("tar jxvf $kit -C /tmp/tmpkit/");
opendir($dir,"/tmp/tmpkit/");
my @files = readdir($dir);