mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-08-02 09:14:39 +02:00
mod/notification-ntfy: $SendNtfy: use $ExitError to indicate unintentional error
This commit is contained in:
parent
aac723e2a1
commit
e76ae11b02
1 changed files with 4 additions and 2 deletions
|
@ -134,11 +134,13 @@
|
|||
}
|
||||
|
||||
# send notification via ntfy - expects at least two string arguments
|
||||
:set SendNtfy do={
|
||||
:set SendNtfy do={ :do {
|
||||
:global SendNtfy2;
|
||||
|
||||
$SendNtfy2 ({ origin=$0; subject=$1; message=$2; link=$3; silent=$4 });
|
||||
}
|
||||
} on-error={
|
||||
:global ExitError; $ExitError false $0;
|
||||
} }
|
||||
|
||||
# send notification via ntfy - expects one array argument
|
||||
:set SendNtfy2 do={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue