mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
global-functions: $ScriptInstallUpdate: log error on reloading global functions
This commit is contained in:
parent
156024ac2f
commit
ab267d54b3
1 changed files with 5 additions and 1 deletions
|
@ -632,7 +632,11 @@
|
||||||
}
|
}
|
||||||
:if ($ScriptVal->"name" = "global-functions") do={
|
:if ($ScriptVal->"name" = "global-functions") do={
|
||||||
$LogPrintExit info ("Reloading global functions.") false;
|
$LogPrintExit info ("Reloading global functions.") false;
|
||||||
/ system script run global-functions;
|
:do {
|
||||||
|
/ system script run global-functions;
|
||||||
|
} on-error={
|
||||||
|
$LogPrintExit error ("Reloading global functions failed!") false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else={
|
} else={
|
||||||
$LogPrintExit debug ("Script " . $ScriptVal->"name" . " did not change.") false;
|
$LogPrintExit debug ("Script " . $ScriptVal->"name" . " did not change.") false;
|
||||||
|
|
Loading…
Reference in a new issue