global-functions: $DeviceInfo: use $CommitBrief

This commit is contained in:
Christian Hesse 2026-01-20 11:20:58 +01:00
parent 8bc9e23bd7
commit edd184db8f

View file

@ -335,11 +335,10 @@
# get readable device info
:set DeviceInfo do={
:global CommitId;
:global CommitInfo;
:global ExpectedConfigVersion;
:global Identity;
:global CommitBrief;
:global IfThenElse;
:global FormatLine;
@ -380,8 +379,7 @@
$RouterBoard->"current-firmware" != $RouterBoard->"upgrade-firmware") \
([ $FormatLine " Firmware" ($RouterBoard->"current-firmware") ] . "\n") ] . \
"RouterOS-Scripts:\n" . \
[ $IfThenElse ($CommitId != "unknown") \
([ $FormatLine " Commit" ($CommitInfo . "/" . [ :pick $CommitId 0 8 ]) ] . "\n") ] . \
[ $FormatLine " Commit" [ $CommitBrief ] ] . "\n" . \
[ $FormatLine " Version" $ExpectedConfigVersion ]);
}