script-updates: also consider scripts with empty source for update

This commit is contained in:
Christian Hesse 2020-03-05 20:09:36 +01:00
parent f3e2fb654b
commit 8020955b3b

View file

@ -17,7 +17,7 @@
:global LogPrintExit;
:global SendNotification;
:foreach Script in=[ / system script find where source~"^#!rsc" ] do={
:foreach Script in=[ / system script find where source~"^#!rsc" or source="" ] do={
:local Ignore 0;
:local ScriptVal [ / system script get $Script ];
:local ScriptFile [ / file find where name=("script-updates/" . $ScriptVal->"name") ];