mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-08-03 01:34:58 +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;
|
||||
|
||||
# flush ntfy queue
|
||||
:set FlushNtfyQueue do={
|
||||
:set FlushNtfyQueue do={ :do {
|
||||
:global NtfyQueue;
|
||||
:global NtfyMessageIDs;
|
||||
|
||||
|
@ -52,7 +52,9 @@
|
|||
/system/scheduler/remove [ find where name="_FlushNtfyQueue" ];
|
||||
:set NtfyQueue;
|
||||
}
|
||||
}
|
||||
} on-error={
|
||||
:global ExitError; $ExitError false $0;
|
||||
} }
|
||||
|
||||
# send notification via ntfy - expects one array argument
|
||||
:set ($NotificationFunctions->"ntfy") do={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue