mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 20:29:49 -05:00
Return error on copy
This commit is contained in:
+1
-1
@@ -45,7 +45,7 @@ int main(int ac, char** av)
|
||||
if ( args[1] == "copy" && args.size() == 4 )
|
||||
{
|
||||
cmSystemTools::cmCopyFile(args[2].c_str(), args[3].c_str());
|
||||
return 0;
|
||||
return cmSystemTools::GetErrorOccuredFlag();
|
||||
}
|
||||
if ( args[1] == "remove" && args.size() > 2 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user