mirror of
https://github.com/hauke68/Magallanes.git
synced 2025-09-16 13:50:17 +02:00
Prepend environment variables to command
This commit is contained in:
parent
6b207eb480
commit
e4ba19679a
@ -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…
Reference in New Issue
Block a user