kopia lustrzana https://github.com/c9/core
Make gssh force use cache for extra wsmonitor / abuse commands after the first list
rodzic
5e710c87ad
commit
905465408d
|
@ -24,12 +24,15 @@ function runCommand(pattern, command, options, callback) {
|
|||
return runCommand(pattern, command, {}, options);
|
||||
}
|
||||
|
||||
var parallel = ""
|
||||
var optionsArray = [];
|
||||
if (options.parallel) {
|
||||
parallel = " -P"
|
||||
optionsArray.push("-P");
|
||||
}
|
||||
if (options.cacheOnly) {
|
||||
optionsArray.push("--cache-only");
|
||||
}
|
||||
|
||||
var gsshCommand = GSSH + " " + parallel + " " + pattern + " '" + command + "'";
|
||||
var gsshCommand = GSSH + " " + optionsArray.join(" ") + " " + pattern + " '" + command + "'";
|
||||
childProcess.exec(gsshCommand, function (err, stdout) {
|
||||
return callback(err, stdout);
|
||||
});
|
||||
|
|
Ładowanie…
Reference in New Issue