diff --git a/xCAT-buildkit/bin/buildkit b/xCAT-buildkit/bin/buildkit index f55ec5ddb..fbe93bf41 100755 --- a/xCAT-buildkit/bin/buildkit +++ b/xCAT-buildkit/bin/buildkit @@ -1854,6 +1854,11 @@ sub create_kitconf } } + if ( (! -d $::deploy_dir) && (! mkpath($::deploy_dir)) ) { + print "Error creating build directory $::deploy_dir.\n"; + return; + } + my $full_kit_conf = $::deploy_dir."/".$::kit_conf; my $NCF; unless ( open( $NCF, ">$full_kit_conf" ) ) {