Change 'cp' command to 'copy' for windows

This commit is contained in:
Dmitry Khomutov 2014-03-14 00:06:59 +07:00
parent b27d9f55f3
commit ca13b65022

View file

@ -45,7 +45,11 @@ class LocalBuild extends Build
if (isset($buildSettings['prefer_symlink']) && $buildSettings['prefer_symlink'] === true) {
return $this->handleSymlink($builder, $reference, $buildPath);
} else {
$builder->executeCommand('cp -Rf "%s" "%s/"', $reference, $buildPath);
$cmd = 'cp -Rf "%s" "%s/"';
if (IS_WIN) {
$cmd = 'copy /Y "%s" "%s/"';
}
$builder->executeCommand($cmd, $reference, $buildPath);
}
return true;