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.
This commit is contained in:
4
index.js
4
index.js
@@ -27,8 +27,8 @@ module.exports = function (options) {
|
|||||||
cb(null, file);
|
cb(null, file);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
cmdArgs.push(file.path);
|
var localArgs = cmdArgs.concat(file.path);
|
||||||
return execFile(targetFile, cmdArgs, function (error, stdout, stderror) {
|
return execFile(targetFile, localArgs, function (error, stdout, stderror) {
|
||||||
if (stdout.trim()) {
|
if (stdout.trim()) {
|
||||||
gutil.log(stdout);
|
gutil.log(stdout);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user