diff --git a/xCAT-server/share/xcat/tools/mktoolscenter b/xCAT-server/share/xcat/tools/mktoolscenter index cb39179f8..1d5b2d621 100755 --- a/xCAT-server/share/xcat/tools/mktoolscenter +++ b/xCAT-server/share/xcat/tools/mktoolscenter @@ -286,7 +286,7 @@ while ($path) { }; $path = $_; my $sandbox = "$repo/sandbox"; -if ( mkdir($path) or mkdir($sandbox) or system("cp $srcdir/$util $repo") or system("cp $asudir/$asu $repo")) { +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"); exit; }