allow kit location and kit name to be different

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16611 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
nott 2013-06-11 14:51:54 +00:00
parent 0b44aaa1ad
commit f341aa50ab

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;