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!
This commit is contained in:
Christian Hesse 2020-01-29 21:15:30 +01:00
parent c500243c97
commit 833e72eac8

View file

@ -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") ];