aboutsummaryrefslogtreecommitdiffstats
path: root/accesslist-duplicates.capsman.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-03-06 15:28:55 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-03-12 15:27:15 +0100
commitd0af9d62ea6bd3b749d717f223ee424d5962c2af (patch)
tree8f0423c05b2d4c595c3a30ed00f022359d0a447f /accesslist-duplicates.capsman.rsc
parentb86d6314868596dacdf422db80ef0ff27c61c644 (diff)
accesslist-duplicates: drop main function, use :do with on-error
Diffstat (limited to 'accesslist-duplicates.capsman.rsc')
-rw-r--r--accesslist-duplicates.capsman.rsc8
1 files changed, 3 insertions, 5 deletions
diff --git a/accesslist-duplicates.capsman.rsc b/accesslist-duplicates.capsman.rsc
index f781eb3..2ce8302 100644
--- a/accesslist-duplicates.capsman.rsc
+++ b/accesslist-duplicates.capsman.rsc
@@ -13,8 +13,8 @@
:global GlobalFunctionsReady;
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
-:local Main do={
- :local ScriptName [ :tostr $1 ];
+:do {
+ :local ScriptName [ :jobname ];
:local Seen ({});
@@ -31,6 +31,4 @@
}
:set ($Seen->$Mac) 1;
}
-}
-
-$Main [ :jobname ];
+} on-error={ }