From d6337fcc9733b6a780cf44d2b367f1700464507e Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 13 Jul 2022 11:35:32 +0200 Subject: netwatch-notify: update initialization of empty array Having the parenthesis here is important for valid syntax! --- netwatch-notify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'netwatch-notify') diff --git a/netwatch-notify b/netwatch-notify index a725fc3..3b84a06 100644 --- a/netwatch-notify +++ b/netwatch-notify @@ -56,7 +56,7 @@ $ScriptLock $0; } :if ([ :typeof $NetwatchNotify ] = "nothing") do={ - :set NetwatchNotify [ :toarray "" ]; + :set NetwatchNotify ({}); } :foreach Host in=[ /tool/netwatch/find where comment~"notify" !disabled ] do={ -- cgit v1.2.3-70-g09d2