Fixed rm for windows

This commit is contained in:
Dmitry Khomutov 2014-03-18 23:58:23 +07:00
parent a7a90195a9
commit 27023e157a

View file

@ -216,7 +216,12 @@ class Builder implements LoggerAwareInterface
// Clean up:
$this->buildLogger->log('Removing build.');
shell_exec(sprintf('rm -Rf "%s"', $this->buildPath));
$cmd = 'rm -Rf "%s"';
if (IS_WIN) {
$cmd = 'deltree /Y "%s"';
}
$this->executeCommand($cmd, $this->buildPath);
// Update the build in the database, ping any external services, etc.
$this->build->sendStatusPostback();