Skip to content

Commit

Permalink
fix: override env vars with explicit config vars
Browse files Browse the repository at this point in the history
Closes #50
  • Loading branch information
ChrisWren authored and pkozlowski-opensource committed Jul 24, 2014
1 parent 64e532c commit f97c9d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sauce_launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ var SauceLauncher = function(args, sauceConnect, /* config.sauceLabs */ config,

config = config || {};

var username = process.env.SAUCE_USERNAME || args.username || config.username;
var accessKey = process.env.SAUCE_ACCESS_KEY || args.accessKey || config.accessKey;
var username = args.username || config.username || process.env.SAUCE_USERNAME;
var accessKey = args.accessKey || config.accessKey || process.env.SAUCE_ACCESS_KEY;
var tunnelIdentifier = args.tunnelIdentifier || config.tunnelIdentifier;
var browserName = args.browserName + (args.version ? ' ' + args.version : '') +
(args.platform ? ' (' + args.platform + ')' : '');
Expand Down

0 comments on commit f97c9d0

Please sign in to comment.