mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-22 03:44:59 +02:00
check-lte-firmware-update: strip the extra line break
This commit is contained in:
parent
9346df67d7
commit
f97b45b5b8
1 changed files with 2 additions and 0 deletions
|
@ -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 " . \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue