2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 09:13:08 +00:00

Handle blank spaces in the addkit directory path name

This commit is contained in:
Casandra Qiu 2016-09-14 15:51:59 -04:00
parent 3d90e27584
commit 208968e189

View File

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