From 060a37aab1880d02774a725f3d7655e53c624b24 Mon Sep 17 00:00:00 2001 From: M Parker Date: Fri, 15 Apr 2022 10:14:13 -0400 Subject: [PATCH] bug: BrowserStack\Local does not pass along binary_path to BrowserStack\LocalBinary --- lib/Local.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Local.php b/lib/Local.php index 69a9973..ff45f30 100644 --- a/lib/Local.php +++ b/lib/Local.php @@ -111,6 +111,10 @@ public function start($arguments) { $this->add_args($key,$value); $this->binary = new LocalBinary(); + // If this class has been passed a custom binary_path, pass it to the start + // of the LocalBinary class' list of possible binary paths. + if(!empty($this->binary_path)) + array_unshift($this->binary->possible_binary_paths, $this->binary_path); $this->binary_path = $this->binary->binary_path(); $call = $this->start_command();