Prune blank args

This commit is contained in:
HaveAGitGat 2023-10-11 07:25:14 +01:00
parent 9e0812b143
commit d9d03b9517
4 changed files with 14 additions and 9 deletions

View file

@ -229,7 +229,8 @@ var CLI = /** @class */ (function () {
return [4 /*yield*/, new Promise(function (resolve) {
try {
var opts = _this.config.spawnOpts || {};
var thread = childProcess.spawn(_this.config.cli, _this.config.spawnArgs, opts);
var spawnArgs = _this.config.spawnArgs.map(function (row) { return row.trim(); }).filter(function (row) { return row !== ''; });
var thread = childProcess.spawn(_this.config.cli, spawnArgs, opts);
thread.stdout.on('data', function (data) {
// eslint-disable-next-line no-console
// console.log(data.toString());