check-lte-firmware-upgrade: use $FormatLine

This commit is contained in:
Christian Hesse 2023-04-21 00:01:06 +02:00
parent b1cb4cb10f
commit 3f9480f9f2

View file

@ -23,6 +23,7 @@
:global SentLteFirmwareUpgradeNotification; :global SentLteFirmwareUpgradeNotification;
:global CharacterReplace; :global CharacterReplace;
:global FormatLine;
:global LogPrintExit2; :global LogPrintExit2;
:global ScriptFromTerminal; :global ScriptFromTerminal;
:global SendNotification2; :global SendNotification2;
@ -71,9 +72,9 @@
subject=([ $SymbolForNotification "sparkles" ] . "LTE firmware upgrade"); \ subject=([ $SymbolForNotification "sparkles" ] . "LTE firmware upgrade"); \
message=("A new firmware version " . ($Firmware->"latest") . " is available for " . \ message=("A new firmware version " . ($Firmware->"latest") . " is available for " . \
"LTE interface " . $IntName . " on " . $Identity . ".\n\n" . \ "LTE interface " . $IntName . " on " . $Identity . ".\n\n" . \
"Interface: " . [ $CharacterReplace ($Info->"manufacturer" . " " . $Info->"model") ("\"") "" ] . "\n" . \ [ $FormatLine "Interface" [ $CharacterReplace ($Info->"manufacturer" . " " . $Info->"model") ("\"") "" ] ] . "\n" . \
"Installed: " . ($Firmware->"installed") . "\n" . \ [ $FormatLine "Installed" ($Firmware->"installed") ] . "\n" . \
"Available: " . ($Firmware->"latest")); silent=true }); [ $FormatLine "Available" ($Firmware->"latest") ]); silent=true });
:set ($SentLteFirmwareUpgradeNotification->$IntName) ($Firmware->"latest"); :set ($SentLteFirmwareUpgradeNotification->$IntName) ($Firmware->"latest");
} }