From 833e72eac86af8966b5de19c25d64c89091eb7bf Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 29 Jan 2020 21:15:30 +0100 Subject: 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! --- script-updates | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") ]; -- cgit v1.2.3-70-g09d2