Change 'cp' command to 'copy' for windows
This commit is contained in:
parent
b27d9f55f3
commit
ca13b65022
|
@ -45,7 +45,11 @@ class LocalBuild extends Build
|
||||||
if (isset($buildSettings['prefer_symlink']) && $buildSettings['prefer_symlink'] === true) {
|
if (isset($buildSettings['prefer_symlink']) && $buildSettings['prefer_symlink'] === true) {
|
||||||
return $this->handleSymlink($builder, $reference, $buildPath);
|
return $this->handleSymlink($builder, $reference, $buildPath);
|
||||||
} else {
|
} 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;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue