mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-01-21 00:19:32 +00:00
global-functions: $FetchUserAgentStr: user $CommitBrief
This commit is contained in:
parent
edd184db8f
commit
f7cd7d7729
1 changed files with 2 additions and 5 deletions
|
|
@ -572,16 +572,13 @@
|
|||
:set FetchUserAgentStr do={
|
||||
:local Caller [ :tostr $1 ];
|
||||
|
||||
:global CommitId;
|
||||
:global CommitInfo;
|
||||
|
||||
:global CommitBrief;
|
||||
:global IfThenElse;
|
||||
|
||||
:local Resource [ /system/resource/get ];
|
||||
|
||||
:return ("User-Agent: Mikrotik/" . $Resource->"version" . " " . $Resource->"architecture-name" . \
|
||||
" " . $Caller . "/Fetch (https://rsc.eworm.de/" . [ $IfThenElse ($CommitId != "unknown") \
|
||||
("; " . $CommitInfo . "/" . [ :pick $CommitId 0 8 ]) ] . ")");
|
||||
" " . $Caller . "/Fetch (https://rsc.eworm.de/; " . [ $CommitBrief ] . ")");
|
||||
}
|
||||
|
||||
# check for existence of file, optionally with type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue