global-functions: introduce and use $SymbolForNotification

This commit is contained in:
Christian Hesse 2020-07-17 08:07:12 +02:00
parent 0e7b2d3ac7
commit 075859c898
9 changed files with 35 additions and 18 deletions

View file

@ -15,7 +15,7 @@
:global LogPrintExit;
:global ScriptFromTerminal;
:global SendNotification;
:global SymbolByUnicodeName;
:global SymbolForNotification;
:global VersionToNum;
:local DoUpdate do={
@ -89,7 +89,7 @@
$Update->"latest-version" . ".") true;
}
$SendNotification ([ $SymbolByUnicodeName "sparkles" ] . " RouterOS update") \
$SendNotification ([ $SymbolForNotification "sparkles" ] . "RouterOS update") \
("A new RouterOS version " . ($Update->"latest-version") . \
" is available for " . $Identity . ".\n\n" . \
[ $DeviceInfo ] . "\n\n" . \