mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-01-21 00:19:32 +00:00
global-functions: introduce $CommitBrief
This commit is contained in:
parent
fbe7b8e4bc
commit
8bc9e23bd7
1 changed files with 13 additions and 0 deletions
|
|
@ -30,6 +30,7 @@
|
|||
:global CharacterReplace;
|
||||
:global CleanFilePath;
|
||||
:global CleanName;
|
||||
:global CommitBrief;
|
||||
:global DeviceInfo;
|
||||
:global Dos2Unix;
|
||||
:global DownloadPackage;
|
||||
|
|
@ -320,6 +321,18 @@
|
|||
:return $Return;
|
||||
}
|
||||
|
||||
# return a brief commit description
|
||||
:set CommitBrief do={
|
||||
:global CommitId;
|
||||
:global CommitInfo;
|
||||
|
||||
:if ($CommitId = "unknown") do={
|
||||
:return "unknown";
|
||||
}
|
||||
|
||||
:return ($CommitInfo . "/" . [ :pick $CommitId 0 8 ]);
|
||||
}
|
||||
|
||||
# get readable device info
|
||||
:set DeviceInfo do={
|
||||
:global CommitId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue