check-routeros-update: use $SymbolByUnicodeName

This commit is contained in:
Christian Hesse 2020-07-17 07:43:49 +02:00
parent 17e9635ca1
commit 33899b9904

View file

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