Extract child process args into variable

pull/1604/head
Clemens Wolff 3 years ago
parent ba46544772
commit bc174c3325

@ -6,7 +6,8 @@ class Apprise extends NotificationProvider {
name = "apprise";
async send(notification, msg, monitorJSON = null, heartbeatJSON = null) {
let s = childProcess.spawnSync("apprise", [ "-vv", "-b", msg, notification.appriseURL ]);
let args = [ "-vv", "-b", msg, notification.appriseURL ];
let s = childProcess.spawnSync("apprise", args);
let output = (s.stdout) ? s.stdout.toString() : "ERROR: maybe apprise not found";

Loading…
Cancel
Save