Fixing symlink removal.

Closes #854
This commit is contained in:
vsguts 2015-03-05 21:25:11 +03:00 committed by Dan Cryer
parent 33fc50a0b5
commit a188afb0da

View file

@ -223,7 +223,7 @@ class Builder implements LoggerAwareInterface
if (IS_WIN) {
$cmd = 'rmdir /S /Q "%s"';
}
$this->executeCommand($cmd, $this->buildPath);
$this->executeCommand($cmd, rtrim($this->buildPath, '/'));
} catch (\Exception $ex) {
$this->build->setStatus(Build::STATUS_FAILED);
$this->buildLogger->logFailure(Lang::get('exception') . $ex->getMessage());