-defect 2992985 is fixed;

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5968 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
mxi1 2010-05-05 08:09:28 +00:00
parent efde782779
commit 9c9feda909

View File

@ -336,17 +336,22 @@ sub liteMe {
# if no such file like $rif, create one
unless ( -e "$rif" ) {
my $rifstr = $rif;
if($f =~ m{/$}) {
$verbose && $callback->({info=>["mkdir -p $rif"]});
system("mkdir -p $rif");
} else {
# check whether its directory exists or not
my $rifdir = dirname($rif);
unless( -e $rifdir ) {
$verbose && $callback->({info => ["mkdir $rifdir"]});
mkdir($rifdir);
}
$verbose && $callback->({info=>["touch $rif"]});
system("touch $rif");
}
}
if( !(-e "$rootimg_dir/.default$d") ) {
unless ( -e "$rootimg_dir/.default$d" ) {
$verbose && $callback->({info=>["mkdir -p $rootimg_dir/.default$d"]});
system("mkdir -p $rootimg_dir/.default$d");
}