/* global process: false */

'use strict';

module.exports = function(grunt) {
    grunt.registerTask('sauce', function() {
        var sauce, config;

        if (!process.env.SAUCE_USERNAME) {
            if (!grunt.file.exists('sauce.json')) {
                grunt.fail.fatal('sauce.json not found', 3);
            }
            else {
                sauce = grunt.file.readJSON('sauce.json');
                process.env.SAUCE_USERNAME = sauce.username;
                process.env.SAUCE_ACCESS_KEY = sauce.accessKey;
            }
        }

        config = grunt.config.get('karma.remote');
        config.browsers = Object.keys(config.customLaunchers);
        grunt.config.set('karma.remote', config);
        grunt.task.run('karma:remote');
    });
};

@@ -113,16 +113,24 @@
 unction(
+browsers
 ) %7B%0A    
@@ -627,16 +627,49 @@
 owsers =
+ browsers ? browsers.split(',') :
  Object.

Change sauce task so a browser name can be passed via cmd line [skip ci]