mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-07-30 21:21:35 +00:00
Compare commits
No commits in common. "55eef9c69222d9cd718999e67ff685b3e2c26d57" and "e8fb8fe74e5cd40f28a2b7aa0d857eda1a5466ee" have entirely different histories.
55eef9c692
...
e8fb8fe74e
1 changed files with 6 additions and 10 deletions
|
|
@ -1318,16 +1318,12 @@
|
|||
:local DeviceMode [ /system/device-mode/get ];
|
||||
|
||||
:local CheckSums ({});
|
||||
:if ([ :pick $ScriptUpdatesBaseUrl 0 21 ] = "https://rsc.eworm.de/") do={
|
||||
:onerror Err {
|
||||
:local Url ($ScriptUpdatesBaseUrl . "checksums.json" . $ScriptUpdatesUrlSuffix);
|
||||
$LogPrint debug $0 ("Fetching checksums from url: " . $Url);
|
||||
:set CheckSums [ :deserialize from=json ([ /tool/fetch check-certificate=yes-without-crl \
|
||||
http-header-field=({ [ $FetchUserAgentStr $0 ] }) $Url output=user as-value ]->"data") ];
|
||||
} do={
|
||||
$LogPrint warning $0 ("Failed downloading checksums: " . $Err);
|
||||
}
|
||||
}
|
||||
:do {
|
||||
:local Url ($ScriptUpdatesBaseUrl . "checksums.json" . $ScriptUpdatesUrlSuffix);
|
||||
$LogPrint debug $0 ("Fetching checksums from url: " . $Url);
|
||||
:set CheckSums [ :deserialize from=json ([ /tool/fetch check-certificate=yes-without-crl \
|
||||
http-header-field=({ [ $FetchUserAgentStr $0 ] }) $Url output=user as-value ]->"data") ];
|
||||
} on-error={ }
|
||||
|
||||
:foreach Script in=[ /system/script/find where source~"^#!rsc by RouterOS\r?\n" ] do={
|
||||
:local ScriptVal [ /system/script/get $Script ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue