mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-13 14:42:29 +02:00
mod/notification-ntfy: $FlushNtfyQueue: use $ExitError to indicate unintentional error
This commit is contained in:
parent
de9dee83be
commit
aac723e2a1
1 changed files with 4 additions and 2 deletions
|
@ -15,7 +15,7 @@
|
||||||
:global SendNtfy2;
|
:global SendNtfy2;
|
||||||
|
|
||||||
# flush ntfy queue
|
# flush ntfy queue
|
||||||
:set FlushNtfyQueue do={
|
:set FlushNtfyQueue do={ :do {
|
||||||
:global NtfyQueue;
|
:global NtfyQueue;
|
||||||
:global NtfyMessageIDs;
|
:global NtfyMessageIDs;
|
||||||
|
|
||||||
|
@ -52,7 +52,9 @@
|
||||||
/system/scheduler/remove [ find where name="_FlushNtfyQueue" ];
|
/system/scheduler/remove [ find where name="_FlushNtfyQueue" ];
|
||||||
:set NtfyQueue;
|
:set NtfyQueue;
|
||||||
}
|
}
|
||||||
}
|
} on-error={
|
||||||
|
:global ExitError; $ExitError false $0;
|
||||||
|
} }
|
||||||
|
|
||||||
# send notification via ntfy - expects one array argument
|
# send notification via ntfy - expects one array argument
|
||||||
:set ($NotificationFunctions->"ntfy") do={
|
:set ($NotificationFunctions->"ntfy") do={
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue