Windows fixes
This commit is contained in:
parent
ea35f24d47
commit
8cd30ffdfe
|
@ -127,7 +127,7 @@ class CommandExecutor
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use "where" for windows and "which" for other OS
|
// 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));
|
$findCmdResult = trim(shell_exec($findCmd . ' ' . $bin));
|
||||||
|
|
||||||
if (!empty($findCmdResult)) {
|
if (!empty($findCmdResult)) {
|
||||||
|
|
|
@ -46,7 +46,7 @@ class LocalBuild extends Build
|
||||||
} else {
|
} else {
|
||||||
$cmd = 'cp -Rf "%s" "%s/"';
|
$cmd = 'cp -Rf "%s" "%s/"';
|
||||||
if (IS_WIN) {
|
if (IS_WIN) {
|
||||||
$cmd = 'copy /Y "%s" "%s/"';
|
$cmd = 'xcopy /E /Y "%s" "%s/*"';
|
||||||
}
|
}
|
||||||
$builder->executeCommand($cmd, $reference, $buildPath);
|
$builder->executeCommand($cmd, $reference, $buildPath);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue