#!/usr/bin/env bash
# Compatibility wrapper for the canonical 110 runner/CD fail-closed enforcer.

set -eu

SCRIPT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
if [ -x "$SCRIPT_DIR/enforce-110-runner-failclosed.sh" ]; then
  exec "$SCRIPT_DIR/enforce-110-runner-failclosed.sh" "$@"
fi

if [ -x /usr/local/lib/awoooi/enforce-110-runner-failclosed.authority.sh ]; then
  exec /usr/local/lib/awoooi/enforce-110-runner-failclosed.authority.sh "$@"
fi

exec /usr/local/lib/awoooi/enforce-110-runner-failclosed.sh "$@"
