Skip to content

Commit 7180bc0

Browse files
Bug Fix for Incorrect auth params.
1 parent 7f67a57 commit 7180bc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/helpers/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ exports.setParallels = (bsConfig, args) => {
116116
};
117117

118118
exports.setUsername = (bsConfig, args) => {
119-
if(this.isUndefined(bsConfig["auth"])){
120-
bsConfig["auth"] = {};
119+
if (this.isUndefined(bsConfig['auth']) && (!this.isUndefined(args.username) || !this.isUndefined(process.env.BROWSERSTACK_USERNAME))) {
120+
bsConfig['auth'] = {};
121121
}
122122
if (!this.isUndefined(args.username)) {
123123
bsConfig["auth"]["username"] = args.username;

0 commit comments

Comments
 (0)