mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-21 01:15:42 +02:00
global-functions: $ScriptInstallUpdate: simplify check
This one should suffice...
This commit is contained in:
parent
c9de6d8579
commit
b13360e4b8
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue