mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-06 18:09:28 +00:00
global-functions: $ScriptInstallUpdate: extra actions on 'not found' only
This commit is contained in:
parent
dad4bc3f18
commit
a72bccc49c
1 changed files with 4 additions and 0 deletions
|
|
@ -1309,6 +1309,10 @@
|
||||||
}
|
}
|
||||||
} do={
|
} do={
|
||||||
$LogPrint warning $0 ("Failed fetching script '" . $ScriptVal->"name" . "': " . $Err);
|
$LogPrint warning $0 ("Failed fetching script '" . $ScriptVal->"name" . "': " . $Err);
|
||||||
|
:if ($Err != "Fetch failed with status 404") do={
|
||||||
|
:error false;
|
||||||
|
}
|
||||||
|
|
||||||
:if ($ScriptVal->"source" = "#!rsc by RouterOS\n") do={
|
:if ($ScriptVal->"source" = "#!rsc by RouterOS\n") do={
|
||||||
$LogPrint warning $0 ("Removing dummy. Typo on installation?");
|
$LogPrint warning $0 ("Removing dummy. Typo on installation?");
|
||||||
/system/script/remove $Script;
|
/system/script/remove $Script;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue