aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-03-12 18:01:39 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-03-12 18:02:58 +0100
commit43d0f9f371945b2f6178ba2de13227251683d414 (patch)
tree94094dbd2d7e2f650941df666b69ecc54df8ef6a
parent24a65b21316e8cad7778ca2fb91defa69dd479c6 (diff)
downloadrouteros-scripts-custom-main.tar.gz
routeros-scripts-custom-main.tar.zst
hello-world: switch to $LogPrintnextmain
-rw-r--r--hello-world.rsc4
1 files changed, 2 insertions, 2 deletions
diff --git a/hello-world.rsc b/hello-world.rsc
index ca125e7..e3ebf8a 100644
--- a/hello-world.rsc
+++ b/hello-world.rsc
@@ -12,12 +12,12 @@
:do {
:local ScriptName [ :jobname ];
- :global LogPrintExit2;
+ :global LogPrint;
:global ScriptFromTerminal;
:global SendNotification2;
:if ([ $ScriptFromTerminal $ScriptName ] = true) do={
- $LogPrintExit2 info $ScriptName ("Hello world!") false;
+ $LogPrint info $ScriptName ("Hello world!");
} else={
$SendNotification2 ({ origin=$ScriptName; subject="Hello..."; message="... world!" });
}