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:
parent
0b44aaa1ad
commit
f341aa50ab
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user