global-functions: $ScriptInstallUpdate: simplify check

This one should suffice...
This commit is contained in:
Christian Hesse 2025-03-05 01:53:04 +01:00
parent c9de6d8579
commit b13360e4b8

View file

@ -1178,8 +1178,7 @@
}
:local CheckSum ($CheckSums->($ScriptVal->"name"));
:if ([ :convert transform=md5 to=hex ($ScriptVal->"source") ] = $CheckSum || \
[ :convert transform=md5 to=hex [ :tolf ($ScriptVal->"source") ] ] = $CheckSum) do={
:if ([ :convert transform=md5 to=hex [ :tolf ($ScriptVal->"source") ] ] = $CheckSum) do={
$LogPrint debug $0 ("Checksum for script '" . $ScriptVal->"name" . "' matches, ignoring.");
:error true;
}