From c126124dbafa59850355f9834b991b2c261285ac Mon Sep 17 00:00:00 2001 From: binarytox1n Date: Fri, 27 Jul 2018 11:26:26 -0500 Subject: [PATCH] Enabled support for multiple sln files Fixed bug where each additional piped file would add to the list of parameters for the nuget restore call. Each file is now added to a local array instead of pushing to a global array. --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }