#!/usr/bin/env bash # Deterministic Gitea Markdown renderer stub for check.sh contract tests. set -euo pipefail connect_timeout=0 total_timeout=0 while [ "$#" -gt 0 ]; do case "$1" in --connect-timeout) [ "${2:-}" = "5" ] || exit 2 connect_timeout=1 shift 2 ;; --max-time) [ "${2:-}" = "15" ] || exit 2 total_timeout=1 shift 2 ;; *) shift ;; esac done [ "${connect_timeout}" -eq 1 ] && [ "${total_timeout}" -eq 1 ] || exit 2 if printf '%s\n' "${PR_BODY}" | grep -Fq '[[stall-renderer]]'; then exit 28 fi if printf '%s\n' "${PR_BODY}" | grep -Fq '