global-functions: simplify the scheduler fix

This commit is contained in:
Christian Hesse 2026-01-20 15:34:05 +01:00
parent af3a64c6a2
commit ab01fce80a

View file

@ -1926,9 +1926,7 @@
:if ([ :len [ find where name="global-scripts" ] ] = 0) do={ :if ([ :len [ find where name="global-scripts" ] ] = 0) do={
add name="global-scripts" start-time=startup; add name="global-scripts" start-time=startup;
} }
:if ([ get "global-scripts" on-event ] != $OnEvent) do={ set on-event=$OnEvent [ find where name="global-scripts" on-event!=$OnEvent ];
set "global-scripts" on-event=$OnEvent;
}
} }
# Log success # Log success