From dcde28a213bdff693f6524999458647ae49d39b3 Mon Sep 17 00:00:00 2001 From: nott Date: Tue, 11 Jun 2013 14:50:38 +0000 Subject: [PATCH] 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 --- xCAT-buildkit/bin/buildkit | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xCAT-buildkit/bin/buildkit b/xCAT-buildkit/bin/buildkit index b98bdf322..5dfc5a5c9 100755 --- a/xCAT-buildkit/bin/buildkit +++ b/xCAT-buildkit/bin/buildkit @@ -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;