Skip to content
Snippets Groups Projects
Commit c1cd9347 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

use ph.abort on missing requirements

parent 515de85a
Branches
No related tags found
1 merge request!279use ph.abort on missing requirements
......@@ -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 "$@")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment