mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-21 01:15:42 +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;
|
||||
}
|
||||
|
||||
:if ([ :convert transform=md5 to=hex ($ScriptVal->"source") ] = ($CheckSums->($ScriptVal->"name")) || \
|
||||
[ :convert transform=md5 to=hex [ :tolf ($ScriptVal->"source") ] ] = ($CheckSums->($ScriptVal->"name"))) do={
|
||||
:local CheckSum ($CheckSums->($ScriptVal->"name"));
|
||||
: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.");
|
||||
:error true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue