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:
parent
3d90e27584
commit
208968e189
@ -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/");
|
||||
|
Loading…
x
Reference in New Issue
Block a user