From bc174c33257009cae257ccd303135ca2ebb54fbf Mon Sep 17 00:00:00 2001 From: Clemens Wolff Date: Mon, 2 May 2022 11:00:14 -0400 Subject: [PATCH] Extract child process args into variable --- server/notification-providers/apprise.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/notification-providers/apprise.js b/server/notification-providers/apprise.js index 2d795d4e5..5e73a47c4 100644 --- a/server/notification-providers/apprise.js +++ b/server/notification-providers/apprise.js @@ -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";