Skip to content

Commit 5a5a32a

Browse files
Steven Lybeckpankaj-a
Steven Lybeck
authored andcommitted
Fix argument order sent via command line to browserstack local binary.
Previously, the folder flag and folder value were split by the key argument.
1 parent b077a8f commit 5a5a32a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Local.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,12 @@ function Local(){
199199

200200
this.getBinaryArgs = function(){
201201
var args = ['--daemon', this.opcode, '--log-file', this.logfile];
202-
if(this.folderFlag)
203-
args.push(this.folderFlag);
204202
if(this.key) {
205203
args.push('--key');
206204
args.push(this.key);
207205
}
206+
if(this.folderFlag)
207+
args.push(this.folderFlag);
208208
if(this.folderPath)
209209
args.push(this.folderPath);
210210
if(this.forceLocalFlag)

0 commit comments

Comments
 (0)