Fix Async child process output issue (#4231)

This commit is contained in:
Louis Lam
2023-12-14 04:54:34 +08:00
committed by GitHub
parent 4185ec20b0
commit 8151ac0e25
2 changed files with 5 additions and 2 deletions

View File

@@ -11,7 +11,9 @@ class Apprise extends NotificationProvider {
args.push("-t");
args.push(notification.title);
}
const s = await childProcessAsync.spawn("apprise", args);
const s = await childProcessAsync.spawn("apprise", args, {
encoding: "utf8",
});
const output = (s.stdout) ? s.stdout.toString() : "ERROR: maybe apprise not found";