aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-01-21 11:15:49 +0100
committerGravatar Christian Hesse <mail@eworm.de>2021-01-22 09:22:34 +0100
commit086a395e8233b81f702884492c7edb11e5fd0c32 (patch)
treeab66f80e6388419c99fe7dae31ce24767b9adccc
parent99aaf642b24e7e6b2291e57788c84dd1429461a7 (diff)
global-functions: $ScriptInstallUpdate: give hint on changes
-rw-r--r--global-functions6
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