From e0cb5b07a3e5276c364ec83ae22aa67c0fdbe24b Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 5 May 2025 18:01:28 +0200 Subject: [PATCH] check-certificates: fail if global functions do not become ready Co-authored-by: Ilya Kulakov --- check-certificates.rsc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/check-certificates.rsc b/check-certificates.rsc index be8e4dff..37bf1cce 100644 --- a/check-certificates.rsc +++ b/check-certificates.rsc @@ -10,7 +10,8 @@ # https://rsc.eworm.de/doc/check-certificates.md :global GlobalFunctionsReady; -:while ($GlobalFunctionsReady != true) do={ :delay 500ms; } +:onerror e { :retry { :if ($GlobalFunctionsReady != true) \ + do={ :error "Global functions not ready."; }; } delay=500ms max=20; } do={ :log error $e; }; :local ExitOK false; :do {