File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments