aboutsummaryrefslogtreecommitdiffstats
path: root/check-lte-firmware-upgrade.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-04-21 00:01:06 +0200
committerGravatar Christian Hesse <mail@eworm.de>2023-04-24 22:26:26 +0200
commit3f9480f9f2c89ab80cacdc7f8b850707d757ab43 (patch)
tree977b8a147639723c582dcee221ddeb492a89ea5c /check-lte-firmware-upgrade.rsc
parentb1cb4cb10f74be294fd234459e864cbf2762bae0 (diff)
check-lte-firmware-upgrade: use $FormatLine
Diffstat (limited to 'check-lte-firmware-upgrade.rsc')
-rw-r--r--check-lte-firmware-upgrade.rsc7
1 files changed, 4 insertions, 3 deletions
diff --git a/check-lte-firmware-upgrade.rsc b/check-lte-firmware-upgrade.rsc
index 02e864b..81bdf9b 100644
--- a/check-lte-firmware-upgrade.rsc
+++ b/check-lte-firmware-upgrade.rsc
@@ -23,6 +23,7 @@
:global SentLteFirmwareUpgradeNotification;
:global CharacterReplace;
+ :global FormatLine;
:global LogPrintExit2;
:global ScriptFromTerminal;
:global SendNotification2;
@@ -71,9 +72,9 @@
subject=([ $SymbolForNotification "sparkles" ] . "LTE firmware upgrade"); \
message=("A new firmware version " . ($Firmware->"latest") . " is available for " . \
"LTE interface " . $IntName . " on " . $Identity . ".\n\n" . \
- "Interface: " . [ $CharacterReplace ($Info->"manufacturer" . " " . $Info->"model") ("\"") "" ] . "\n" . \
- "Installed: " . ($Firmware->"installed") . "\n" . \
- "Available: " . ($Firmware->"latest")); silent=true });
+ [ $FormatLine "Interface" [ $CharacterReplace ($Info->"manufacturer" . " " . $Info->"model") ("\"") "" ] ] . "\n" . \
+ [ $FormatLine "Installed" ($Firmware->"installed") ] . "\n" . \
+ [ $FormatLine "Available" ($Firmware->"latest") ]); silent=true });
:set ($SentLteFirmwareUpgradeNotification->$IntName) ($Firmware->"latest");
}