aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-01-29 21:15:30 +0100
committerGravatar Christian Hesse <mail@eworm.de>2020-01-29 21:44:41 +0100
commit833e72eac86af8966b5de19c25d64c89091eb7bf (patch)
treefbf040230db738fe8dd26ce7188dee731f1878a2
parentc500243c97ec888a72d41b77fa3f7c8f14341ac8 (diff)
script-updates: only handle scripts with magic pattern
This is supposed to prevent overwriting foreign scripts. New scripts are expected to be installed with function $ScriptInstallUpdate!
-rw-r--r--script-updates2
1 files changed, 1 insertions, 1 deletions
diff --git a/script-updates b/script-updates
index 95af07d..42ca04a 100644
--- a/script-updates
+++ b/script-updates
@@ -17,7 +17,7 @@
:global SendNotification;
-:foreach Script in=[ / system script find ] do={
+:foreach Script in=[ / system script find where source~"^#!rsc" ] do={
:local Ignore 0;
:local ScriptVal [ / system script get $Script ];
:local ScriptFile [ / file find where name=("script-updates/" . $ScriptVal->"name") ];