From f20ca16d1536f1e6a341a2cfe79a7f09a76c94e3 Mon Sep 17 00:00:00 2001 From: Simon Peacock Date: Sun, 27 Sep 2020 20:14:57 +0100 Subject: [PATCH] hotfix-setWorkingDirectory - adding check for boolean --- src/Utils/ShellProcess.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);