diff --git a/index.js b/index.js index 51a8b25..ac5426f 100644 --- a/index.js +++ b/index.js @@ -27,8 +27,8 @@ module.exports = function (options) { cb(null, file); return; } - cmdArgs.push(file.path); - return execFile(targetFile, cmdArgs, function (error, stdout, stderror) { + var localArgs = cmdArgs.concat(file.path); + return execFile(targetFile, localArgs, function (error, stdout, stderror) { if (stdout.trim()) { gutil.log(stdout); }