2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-19 17:50:20 +00:00

Merge pull request #1840 from cxhong/1815

Handle blank spaces in the addkit directory path name
This commit is contained in:
Yuan Bai
2016-09-21 16:29:08 +08:00
committed by GitHub

View File

@@ -1267,6 +1267,10 @@ sub addkit
push @{ $rsp{data} }, "Extract Kit $kit to /tmp/tmpkit";
xCAT::MsgUtils->message("I", \%rsp, $callback);
}
#support white space in the dir name
$kit =~ s/(\s)/\\$1/g;
$rc = system("tar jxvf $kit -C /tmp/tmpkit/");
opendir($dir, "/tmp/tmpkit/");