mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-22 17:53:31 +02:00
global-functions: $ScriptInstallUpdate: put checksum into variable
This commit is contained in:
parent
10374afc18
commit
c9de6d8579
1 changed files with 3 additions and 2 deletions
|
@ -1177,8 +1177,9 @@
|
||||||
:error true;
|
:error true;
|
||||||
}
|
}
|
||||||
|
|
||||||
:if ([ :convert transform=md5 to=hex ($ScriptVal->"source") ] = ($CheckSums->($ScriptVal->"name")) || \
|
:local CheckSum ($CheckSums->($ScriptVal->"name"));
|
||||||
[ :convert transform=md5 to=hex [ :tolf ($ScriptVal->"source") ] ] = ($CheckSums->($ScriptVal->"name"))) do={
|
:if ([ :convert transform=md5 to=hex ($ScriptVal->"source") ] = $CheckSum || \
|
||||||
|
[ :convert transform=md5 to=hex [ :tolf ($ScriptVal->"source") ] ] = $CheckSum) do={
|
||||||
$LogPrint debug $0 ("Checksum for script '" . $ScriptVal->"name" . "' matches, ignoring.");
|
$LogPrint debug $0 ("Checksum for script '" . $ScriptVal->"name" . "' matches, ignoring.");
|
||||||
:error true;
|
:error true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue