Prepend environment variables to command

This commit is contained in:
Kuba Turek 2015-01-17 23:34:47 +01:00
parent 6b207eb480
commit e4ba19679a

View file

@ -224,6 +224,7 @@ abstract class AbstractTask
*/
protected final function runCommand($command, &$output = null)
{
$command = ltrim($this->getEnvVarsString() . ' ' . $command);
if ($this->getStage() == self::STAGE_DEPLOY || $this->getStage() == self::STAGE_POST_RELEASE) {
return $this->runCommandRemote($command, $output);
} else {