allow kit location and kit name to be different

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16610 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
nott 2013-06-11 14:50:38 +00:00
parent bc386fd56a
commit dcde28a213

View File

@ -555,7 +555,13 @@ sub kit_create
# create Kit directory in pwd
my $kitname=$::KIT_CREATE;
my $kitdir=$::workdir."/$kitname";
my $kitdir;
if ($::KITLOC ) {
$kitdir=$::KITLOC;
} else {
$kitdir=$::workdir."/$kitname";
}
if ( -d $kitdir ) {
print "Another directory alredy exists with the name $kitname in the current working directory. Not able to create new Kit directory $kitdir. \n";
exit 1;