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) {
89
89
);
90
90
91
91
$ 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
+
93
97
$ this ->handle = proc_open ($ call , $ descriptorspec , $ this ->pipes );
94
98
$ status = proc_get_status ($ this ->handle );
95
99
$ this ->pid = $ status ['pid ' ];
@@ -146,7 +150,7 @@ public function command() {
146
150
$ exec = "call " ;
147
151
148
152
$ 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 " ;
150
154
$ command = preg_replace ('/\s+/S ' , " " , $ command );
151
155
return $ command ;
152
156
}
You can’t perform that action at this time.
0 commit comments