Windows fixes
This commit is contained in:
parent
f4df607a16
commit
20bab0d47a
|
@ -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)) {
|
||||
|
|
|
@ -46,7 +46,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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue