aboutsummaryrefslogtreecommitdiffstats
path: root/accesslist-duplicates.local.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.local.rsc
parentb86d6314868596dacdf422db80ef0ff27c61c644 (diff)
accesslist-duplicates: drop main function, use :do with on-error
Diffstat (limited to 'accesslist-duplicates.local.rsc')
-rw-r--r--accesslist-duplicates.local.rsc8
1 files changed, 3 insertions, 5 deletions
diff --git a/accesslist-duplicates.local.rsc b/accesslist-duplicates.local.rsc
index b235cd1..51ef6f3 100644
--- a/accesslist-duplicates.local.rsc
+++ b/accesslist-duplicates.local.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={ }