global-functions: $ScriptInstallUpdate: show commit id (if available)

This commit is contained in:
Christian Hesse 2025-02-13 09:07:43 +01:00
parent 584e507fd1
commit 0199ea8884

View file

@ -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 . \