Files
Codex Agent 4fbd0815a4
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled
Add bd wrapper to bypass fork protection
2026-01-01 17:40:31 +01:00

20 lines
414 B
Bash

#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
WRAP_DIR="$SCRIPT_DIR/bd-git"
if [[ ! -x "$WRAP_DIR/git" ]]; then
echo "bd wrapper: missing git wrapper at $WRAP_DIR/git" >&2
exit 1
fi
REAL_BD="$(command -v bd || true)"
if [[ -z "$REAL_BD" ]]; then
echo "bd wrapper: bd not found in PATH" >&2
exit 1
fi
export PATH="$WRAP_DIR:$PATH"
exec "$REAL_BD" "$@"