diff --git a/src/Task/Exec.php b/src/Task/Exec.php index bd17e44..a503d53 100644 --- a/src/Task/Exec.php +++ b/src/Task/Exec.php @@ -45,7 +45,7 @@ protected function ensureValidPhappEnvironment() { // command. $command = ' [ ! -z "$PHAPP_ENV" ]'; if ($env_command = $this->manifest->getCommand('environment')) { - $command = $env_command . $command ; + $command = trim($env_command) . ' ' . $command ; } $process = new Process($this->ensureCommandRunsViaBash($command)); if ($this->workingDirectory) { @@ -80,7 +80,7 @@ public function getCommand($run_via_bash = TRUE) { $this->ensureValidPhappEnvironment(); if ($env_command = $this->manifest->getCommand('environment')) { - $command = $env_command . " && " . $command; + $command = trim($env_command) . " && " . $command; } }