Browse Source

Prepend environment variables to command

1.0
Kuba Turek 10 years ago
parent
commit
e4ba19679a
  1. 1
      Mage/Task/AbstractTask.php

1
Mage/Task/AbstractTask.php

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

Loading…
Cancel
Save