hello-world: switch to $LogPrint

This commit is contained in:
Christian Hesse 2024-03-12 18:01:39 +01:00
parent 24a65b2131
commit 43d0f9f371

View file

@ -12,12 +12,12 @@
:do { :do {
:local ScriptName [ :jobname ]; :local ScriptName [ :jobname ];
:global LogPrintExit2; :global LogPrint;
:global ScriptFromTerminal; :global ScriptFromTerminal;
:global SendNotification2; :global SendNotification2;
:if ([ $ScriptFromTerminal $ScriptName ] = true) do={ :if ([ $ScriptFromTerminal $ScriptName ] = true) do={
$LogPrintExit2 info $ScriptName ("Hello world!") false; $LogPrint info $ScriptName ("Hello world!");
} else={ } else={
$SendNotification2 ({ origin=$ScriptName; subject="Hello..."; message="... world!" }); $SendNotification2 ({ origin=$ScriptName; subject="Hello..."; message="... world!" });
} }