mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-24 18:48:37 +02: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={
|
||||
$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={
|
||||
$LogPrintExit debug ("Script " . $ScriptVal->"name" . " did not change.") false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue