fix indent
This commit is contained in:
parent
c211472d0c
commit
d4d7ee3281
1 changed files with 5 additions and 5 deletions
10
util.js
10
util.js
|
|
@ -108,11 +108,11 @@ export const notify = (html) => new Promise((resolve, reject) => {
|
||||||
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')) {
|
||||||
console.info('Run `pip install apprise`. See https://github.com/vogler/free-games-claimer#notifications');
|
console.info('Run `pip install apprise`. See https://github.com/vogler/free-games-claimer#notifications');
|
||||||
}
|
}
|
||||||
return resolve();
|
return resolve();
|
||||||
}
|
}
|
||||||
if (stderr) console.error(`stderr: ${stderr}`);
|
if (stderr) console.error(`stderr: ${stderr}`);
|
||||||
if (stdout) console.log(`stdout: ${stdout}`);
|
if (stdout) console.log(`stdout: ${stdout}`);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue