fix #97: NOTIFY_TITLE in quotes, otherwise fails on spaces
This commit is contained in:
parent
4f1ca53d1b
commit
9435ff6edb
1 changed files with 1 additions and 1 deletions
2
util.js
2
util.js
|
|
@ -103,7 +103,7 @@ import { cfg } from './config.js';
|
||||||
export const notify = (html) => new Promise((resolve, reject) => {
|
export const notify = (html) => new Promise((resolve, reject) => {
|
||||||
if (!cfg.notify) return resolve();
|
if (!cfg.notify) return resolve();
|
||||||
const title = cfg.notify_title ? `-t ${cfg.notify_title}` : '';
|
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) {
|
if (error) {
|
||||||
console.log(`error: ${error.message}`);
|
console.log(`error: ${error.message}`);
|
||||||
if (error.message.includes('command not found')) {
|
if (error.message.includes('command not found')) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue