From c1cd93479a451aa25dc0e697043e76c1506931c2 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Tue, 29 Oct 2024 12:41:24 +0100 Subject: [PATCH] use ph.abort on missing requirements --- check_gitlab_tokens | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/check_gitlab_tokens b/check_gitlab_tokens index c3ad849..0d22f9c 100755 --- a/check_gitlab_tokens +++ b/check_gitlab_tokens @@ -194,9 +194,9 @@ GITLAB_CONFIG=$( ph.getValueWithParam $GITLAB_CONFIG g "$@") # --- check requirements ph.require curl -. "${GITLAB_CONFIG}" || exit 1 -. "${REST_CLIENT}" || exit 1 -http.help >/dev/null || exit 1 +. "${GITLAB_CONFIG}" || ph.abort "UNKNOWN: Could not read gitlab config $GITLAB_CONFIG" +. "${REST_CLIENT}" || ph.abort "UNKNOWN: Could not read $REST_CLIENT" +http.help >/dev/null || ph.abort "UNKNOWN: http functions not available. Check -r $REST_CLIENT." iWarnLimit=$( ph.getValueWithParam $iWarnLimit w "$@") -- GitLab