Skip to content

Commit

Permalink
Simplify "process.env" copying
Browse files Browse the repository at this point in the history
  • Loading branch information
zertosh committed May 20, 2015
1 parent 20d9d4d commit 5107d0b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bin/args.js
Expand Up @@ -206,10 +206,7 @@ module.exports = function (args, opts) {
.forEach(function (c) {
var cmd = parseShell(c);
b.transform(function (file) {
var env = Object.keys(process.env).reduce(function (acc, key) {
acc[key] = process.env[key];
return acc;
}, {});
var env = xtend(process.env);
env.FILENAME = file;
var ps = spawn(cmd[0], cmd.slice(1), { env: env });
var error = '';
Expand Down

0 comments on commit 5107d0b

Please sign in to comment.