aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-07-01 23:55:52 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-07-02 00:41:37 +0200
commite38f3fb022a0588fff1fab66d68cbf7cba0be693 (patch)
treeaff4290cc194bbab56a7b2884867422f537c8588
parent149340ff34c0bf13791c4fafc070f98589c6ce6e (diff)
global-functions: $ScriptInstallUpdate: support ignore from comment
Just add 'ignore' in comment...
-rw-r--r--global-functions3
1 files changed, 3 insertions, 0 deletions
diff --git a/global-functions b/global-functions
index b7f1846..f31136f 100644
--- a/global-functions
+++ b/global-functions
@@ -482,6 +482,7 @@
:global SentConfigChangesNotification;
:global LogPrintExit;
+ :global ParseKeyValueStore;
:global SendNotification;
:foreach Script in=$Scripts do={
@@ -520,6 +521,8 @@
:foreach IgnoreLoop in=$ScriptUpdatesIgnore do={
:if ($IgnoreLoop = $ScriptVal->"name") do={ :set Ignore 1; }
}
+ :local Comment [ $ParseKeyValueStore ($ScriptVal->"comment") ];
+ :if ($Comment->"ignore" = true) do={ :set Ignore 1; }
:if ($Ignore = 0) do={
$LogPrintExit debug ("Fetching script from url: " . $ScriptVal->"name") false;