mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-01 08:44:32 +02:00
global-functions: $ScriptInstallUpdate: show commit id (if available)
This commit is contained in:
parent
584e507fd1
commit
0199ea8884
1 changed files with 6 additions and 0 deletions
|
@ -1105,6 +1105,7 @@
|
|||
:local Scripts [ :toarray $1 ];
|
||||
:local NewComment [ :tostr $2 ];
|
||||
|
||||
:global CommitId;
|
||||
:global ExpectedConfigVersion;
|
||||
:global Identity;
|
||||
:global IDonate;
|
||||
|
@ -1137,6 +1138,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
:local CommitIdBefore $CommitId;
|
||||
:local ExpectedConfigVersionBefore $ExpectedConfigVersion;
|
||||
:local ReloadGlobalFunctions false;
|
||||
:local ReloadGlobalConfig false;
|
||||
|
@ -1251,6 +1253,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
:if ($CommitId != "unknown" && $CommitIdBefore != $CommitId) do={
|
||||
$LogPrint info $0 ("Updated to commit id: " . [ :pick $CommitId 0 8 ]);
|
||||
}
|
||||
|
||||
:if ($ExpectedConfigVersionBefore > $ExpectedConfigVersion) do={
|
||||
$LogPrint warning $0 ("The configuration version decreased from " . \
|
||||
$ExpectedConfigVersionBefore . " to " . $ExpectedConfigVersion . \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue