Skip to content
Snippets Groups Projects

use ph.abort on missing requirements

1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
+ 3
3
@@ -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 "$@")
Loading