lib/willitmerge.js
function execSeries(cmds, done) {
  var out = [];
  async.forEachSeries(cmds, function(cmd, next) {
    exec(cmd, function(err, stdout, stderr) {
      out.push({
        stdout: stdout,
        stderr: stderr,
        err: err
      });
      next();
    });
  }, function() {
    done(null, out);
  });
}
function execSeries(cmds, done) {
  var out = [];
  async.forEachSeries(cmds, function(cmd, next) {
    exec(cmd, function(err, stdout, stderr) {
      out.push({
        stdout: stdout,
        stderr: stderr,
        err: err
      });
      next();
    });
  }, function() {
    done(null, out);
  });
}
function execSeries ( cmds , done ) { var out = [ ] ; async . forEachSeries ( cmds , function ( cmd , next ) { exec ( cmd , function ( err , stdout , stderr ) { out . push ( { stdout : stdout , stderr : stderr , err : err } ) ; next ( ) ; } ) ; } , function ( ) { done ( null , out ) ; } ) ; }
exec commands in a series and retun the results
exec commands in a series and retun the results