We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f67a57 commit 7180bc0Copy full SHA for 7180bc0
bin/helpers/utils.js
@@ -116,8 +116,8 @@ exports.setParallels = (bsConfig, args) => {
116
};
117
118
exports.setUsername = (bsConfig, args) => {
119
- if(this.isUndefined(bsConfig["auth"])){
120
- bsConfig["auth"] = {};
+ if (this.isUndefined(bsConfig['auth']) && (!this.isUndefined(args.username) || !this.isUndefined(process.env.BROWSERSTACK_USERNAME))) {
+ bsConfig['auth'] = {};
121
}
122
if (!this.isUndefined(args.username)) {
123
bsConfig["auth"]["username"] = args.username;
0 commit comments