aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--netwatch-notify4
1 files changed, 2 insertions, 2 deletions
diff --git a/netwatch-notify b/netwatch-notify
index 767168b..da6c5ce 100644
--- a/netwatch-notify
+++ b/netwatch-notify
@@ -44,12 +44,12 @@
:return ("Ran hook:\n" . $Hook);
}
+$ScriptLock $0;
+
:if ([ :typeof $NetwatchNotify ] = "nothing") do={
:set NetwatchNotify [ :toarray "" ];
}
-$ScriptLock $0;
-
:foreach Host in=[ / tool netwatch find where comment~"notify" disabled=no ] do={
:local HostVal [ / tool netwatch get $Host ];
:local HostInfo [ $ParseKeyValueStore ($HostVal->"comment") ];