made it so that it would recopy to directories

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6476 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
vallard 2010-06-16 06:47:39 +00:00
parent d205884db8
commit 7d44d61585

View File

@ -853,8 +853,11 @@ sub moveExtra {
return 0;
}
}
unless(move("$imgdir/extra/$ff", $dest)){
$callback->( {error=>["Failed to move $imgdir/extra/$ff to $dest"], errorcode => 1});
# this could cause some problems. This is one of the reasons we may not want to
# allow copying of directories.
system("cp -a $imgdir/extra/$ff/* $dest");
if($?){
$callback->( {error=>["Failed to cp -a $imgdir/extra/$ff/* to $dest"], errorcode => 1});
return 0;
}