Return error on copy

This commit is contained in:
Andy Cedilnik 2002-03-19 12:25:15 -05:00
parent f15cce92f4
commit 2990c3db57
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ int main(int ac, char** av)
if ( args[1] == "copy" && args.size() == 4 ) if ( args[1] == "copy" && args.size() == 4 )
{ {
cmSystemTools::cmCopyFile(args[2].c_str(), args[3].c_str()); cmSystemTools::cmCopyFile(args[2].c_str(), args[3].c_str());
return 0; return cmSystemTools::GetErrorOccuredFlag();
} }
if ( args[1] == "remove" && args.size() > 2 ) if ( args[1] == "remove" && args.size() > 2 )
{ {