mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-06 09:59: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={
|
||||
$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={
|
||||
$LogPrint warning $0 ("Removing dummy. Typo on installation?");
|
||||
/system/script/remove $Script;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue