mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-10 07:50:29 -07:00
Prune blank args
This commit is contained in:
parent
9e0812b143
commit
d9d03b9517
4 changed files with 14 additions and 9 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue