global-functions: $ScriptInstallUpdate: ignore empty scripts

Now that script-updates is gone we support installing new scripts with
$ScriptInstallUpdate only.
This commit is contained in:
Christian Hesse 2020-03-31 12:58:13 +02:00
parent 04460debfc
commit e33b4af433

View file

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