mirror of
https://github.com/DumbWareio/DumbDrop.git
synced 2025-10-23 07:41:58 +00:00
fix: Update Apprise notification command execution method
This commit is contained in:
@@ -616,9 +616,10 @@ async function sendNotification(filename, fileSize) {
|
|||||||
.replace('{size}', formattedSize)
|
.replace('{size}', formattedSize)
|
||||||
.replace('{storage}', totalStorage);
|
.replace('{storage}', totalStorage);
|
||||||
|
|
||||||
// Use array syntax to avoid shell interpretation
|
// Use a string command instead of an array
|
||||||
await execAsync(['apprise', APPRISE_URL, '-b', message], {
|
const command = `apprise ${APPRISE_URL} -b "${message}"`;
|
||||||
shell: false
|
await execAsync(command, {
|
||||||
|
shell: true
|
||||||
});
|
});
|
||||||
|
|
||||||
log.info(`Notification sent for: ${sanitizedFilename} (${formattedSize}, Total storage: ${totalStorage})`);
|
log.info(`Notification sent for: ${sanitizedFilename} (${formattedSize}, Total storage: ${totalStorage})`);
|
||||||
|
Reference in New Issue
Block a user