Fixed rm for windows

This commit is contained in:
Corpsee 2014-03-18 23:58:23 +07:00
parent e7e685e9bd
commit b2240104b4

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();