Skip to content

Commit 6b99643

Browse files
committed
Merge pull request browserstack#8 from browserstack/quotes
quotes
2 parents 5179165 + 227d8f0 commit 6b99643

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/Local.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,11 @@ public function start($arguments) {
8989
);
9090

9191
$call = $this->command();
92-
system('echo "" > '. $this->logfile);
92+
if(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
93+
system('echo "" > '. '$this->logfile');
94+
else
95+
system("echo \"\" > '$this->logfile' ");
96+
9397
$this->handle = proc_open($call, $descriptorspec, $this->pipes);
9498
$status = proc_get_status($this->handle);
9599
$this->pid = $status['pid'];
@@ -146,7 +150,7 @@ public function command() {
146150
$exec = "call";
147151

148152
$user_args = join(' ', $this->user_args);
149-
$command = "$exec $this->binary_path -logFile $this->logfile $this->folder_flag $this->key $this->folder_path $this->force_local_flag $this->local_identifier_flag $this->only_flag $this->only_automate_flag $this->proxy_host $this->proxy_port $this->proxy_user $this->proxy_pass $this->force_proxy_flag $this->force_flag $this->verbose_flag $this->hosts $user_args";
153+
$command = "$exec $this->binary_path -logFile '$this->logfile' $this->folder_flag $this->key $this->folder_path $this->force_local_flag $this->local_identifier_flag $this->only_flag $this->only_automate_flag $this->proxy_host $this->proxy_port $this->proxy_user $this->proxy_pass $this->force_proxy_flag $this->force_flag $this->verbose_flag $this->hosts $user_args";
150154
$command = preg_replace('/\s+/S', " ", $command);
151155
return $command;
152156
}

0 commit comments

Comments
 (0)