Windows fixes

This commit is contained in:
Dmitry Khomutov 2014-03-15 12:57:06 +07:00
parent ca13b65022
commit 58c565417e
2 changed files with 2 additions and 2 deletions

View file

@ -127,7 +127,7 @@ class CommandExecutor
}
// Use "where" for windows and "which" for other OS
$findCmd = IS_WIN ? 'which' : 'where';
$findCmd = IS_WIN ? 'where' : 'which';
$findCmdResult = trim(shell_exec($findCmd . ' ' . $bin));
if (!empty($findCmdResult)) {

View file

@ -47,7 +47,7 @@ class LocalBuild extends Build
} else {
$cmd = 'cp -Rf "%s" "%s/"';
if (IS_WIN) {
$cmd = 'copy /Y "%s" "%s/"';
$cmd = 'xcopy /E /Y "%s" "%s/*"';
}
$builder->executeCommand($cmd, $reference, $buildPath);
}