aboutsummaryrefslogtreecommitdiffstats
path: root/update-gre-address.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-12-06 10:31:52 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-12-09 11:49:50 +0100
commitd4ea0e18a710c5a68c7dabaa5c1c5a40568c965b (patch)
tree0b164dad845475691c61b827fcfd18c4121eb79d /update-gre-address.rsc
parentadbefca0e48bda15d90cc53c52c3982230f8864c (diff)
update-gre-address: use $ExitError to indicate unintentional error
Diffstat (limited to 'update-gre-address.rsc')
-rw-r--r--update-gre-address.rsc6
1 files changed, 5 insertions, 1 deletions
diff --git a/update-gre-address.rsc b/update-gre-address.rsc
index 6dd829d..87762d6 100644
--- a/update-gre-address.rsc
+++ b/update-gre-address.rsc
@@ -12,6 +12,7 @@
:global GlobalFunctionsReady;
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
+:local ExitOK false;
:do {
:local ScriptName [ :jobname ];
@@ -20,6 +21,7 @@
:global ScriptLock;
:if ([ $ScriptLock $ScriptName ] = false) do={
+ :set ExitOK true;
:error false;
}
@@ -39,4 +41,6 @@
}
}
}
-} on-error={ }
+} on-error={
+ :global ExitError; $ExitError $ExitOK [ :jobname ];
+}