diff --git a/src/Utils/ShellProcess.php b/src/Utils/ShellProcess.php index f1cc794..4314364 100644 --- a/src/Utils/ShellProcess.php +++ b/src/Utils/ShellProcess.php @@ -65,7 +65,9 @@ public function printOutput($print = TRUE) { * @return Process */ public function exec($command, $workingDirectory=null) { - if (!$workingDirectory || $workingDirectory==='') { + if ($workingDirectory === TRUE) { + $workingDirectory = getcwd(); + } else if (!$workingDirectory || $workingDirectory==='') { $workingDirectory = $this->appRoot; } $this->process = new Process($command);