From e4ba19679a456d8861d079d44e3d061127404cca Mon Sep 17 00:00:00 2001 From: Kuba Turek Date: Sat, 17 Jan 2015 23:34:47 +0100 Subject: [PATCH] Prepend environment variables to command --- Mage/Task/AbstractTask.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Mage/Task/AbstractTask.php b/Mage/Task/AbstractTask.php index 3637148..14bf390 100644 --- a/Mage/Task/AbstractTask.php +++ b/Mage/Task/AbstractTask.php @@ -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 {