From 9435ff6edbe51ce60ba9bc2452f01bbdf0de4e47 Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Fri, 17 Mar 2023 10:19:34 +0100 Subject: [PATCH] fix #97: NOTIFY_TITLE in quotes, otherwise fails on spaces --- util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.js b/util.js index b45fdb7..839e5c8 100644 --- a/util.js +++ b/util.js @@ -103,7 +103,7 @@ import { cfg } from './config.js'; export const notify = (html) => new Promise((resolve, reject) => { if (!cfg.notify) return resolve(); const title = cfg.notify_title ? `-t ${cfg.notify_title}` : ''; - exec(`apprise ${cfg.notify} -i html ${title} -b '${html}'`, (error, stdout, stderr) => { + exec(`apprise ${cfg.notify} -i html '${title}' -b '${html}'`, (error, stdout, stderr) => { if (error) { console.log(`error: ${error.message}`); if (error.message.includes('command not found')) {