global-functions: use variable name $ScriptName

This commit is contained in:
Christian Hesse 2024-03-12 15:19:42 +01:00
parent 771ca341b0
commit d46156ad92

View file

@ -9,7 +9,7 @@
# global functions # global functions
# https://git.eworm.de/cgit/routeros-scripts/about/ # https://git.eworm.de/cgit/routeros-scripts/about/
:local 0 [ :jobname ]; :local ScriptName [ :jobname ];
# expected configuration version # expected configuration version
:global ExpectedConfigVersion 119; :global ExpectedConfigVersion 119;
@ -1534,7 +1534,7 @@
# Log success # Log success
:local Resource [ /system/resource/get ]; :local Resource [ /system/resource/get ];
$LogPrintOnce info $0 ("Loaded on " . $Resource->"board-name" . \ $LogPrintOnce info $ScriptName ("Loaded on " . $Resource->"board-name" . \
" with RouterOS " . $Resource->"version" . ".") false; " with RouterOS " . $Resource->"version" . ".") false;
# signal we are ready # signal we are ready