aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2018-12-14 23:34:59 +0100
committerGravatar Christian Hesse <mail@eworm.de>2018-12-17 11:36:41 +0100
commitf97b45b5b8b90e1b14a8c14721acd04595b3d7a7 (patch)
tree650c4ea2e0a4282e7711412b72587909215d5f2f
parent9346df67d76d230a7de9381af465ac2a1d38e2f5 (diff)
check-lte-firmware-update: strip the extra line break
-rw-r--r--check-lte-firmware-update2
1 files changed, 2 insertions, 0 deletions
diff --git a/check-lte-firmware-update b/check-lte-firmware-update
index 0f62a0a..2878a27 100644
--- a/check-lte-firmware-update
+++ b/check-lte-firmware-update
@@ -13,6 +13,8 @@
:local intname [ / interface lte get $interface name ];
:do {
:local firmware [ / interface lte firmware-upgrade $interface once as-value ];
+ # strip the extra line break (TODO: remove when fixed upstream)
+ :set ($firmware->"latest") [ :pick ($firmware->"latest") 0 [ :find ($firmware->"latest") "\n" ] ];
:if ($"sent-lte-firmware-update-notification" = ($firmware->"latest")) do={
:log debug ("Already sent the LTE firmware update notification for version " . \