From 98a8ec0cf8c131ab386a1abcf211d4d9d9e0dcdf Mon Sep 17 00:00:00 2001 From: jet777 Date: Thu, 8 Jul 2010 01:50:28 +0000 Subject: [PATCH] defect 3026636 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6673 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/tools/mktoolscenter | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xCAT-server/share/xcat/tools/mktoolscenter b/xCAT-server/share/xcat/tools/mktoolscenter index 1d5b2d621..2294d7c80 100755 --- a/xCAT-server/share/xcat/tools/mktoolscenter +++ b/xCAT-server/share/xcat/tools/mktoolscenter @@ -286,8 +286,11 @@ while ($path) { }; $path = $_; my $sandbox = "$repo/sandbox"; -if ( mkpath($path) or mkpath($sandbox) or system("cp $srcdir/$util $repo") or system("cp $asudir/$asu $repo")) { - output("Error making path or copying input file"); +mkpath($path); +mkpath($sandbox); + +if ( system("cp $srcdir/$util $repo") or system("cp $asudir/$asu $repo")) { + output("Error copying input file"); exit; }