diff options
-rw-r--r-- | global-functions | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/global-functions b/global-functions index a46f35d..c1311cf 100644 --- a/global-functions +++ b/global-functions @@ -597,6 +597,8 @@ } } + :local ScriptInstallUpdateBefore $ScriptInstallUpdate; + :foreach Script in=[ / system script find where source~"^#!rsc( by RouterOS)\?\n" ] do={ :local ScriptVal [ / system script get $Script ]; :local ScriptFile [ / file find where name=("script-updates/" . $ScriptVal->"name") ]; @@ -735,6 +737,10 @@ $NotificationMessage $Link; :set SentConfigChangesNotification $ExpectedConfigVersion; } + + :if ($ScriptInstallUpdateBefore != $ScriptInstallUpdate) do={ + $LogPrintExit info ("This function '\$ScriptInstallUpdate' changed, you may want to re-run.") false; + } } # lock script against multiple invocation |