Files
llm-intelligence/scripts/review/review_worktree_status_guard.sh

15 lines
318 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -euo pipefail
STATUS_FILE="${1:?status file required}"
LINE="$(cat "$STATUS_FILE")"
for token in tracked_modified= untracked= total=; do
if [[ "$LINE" != *"$token"* ]]; then
echo "missing tracked_modified/untracked counters" >&2
exit 1
fi
done
echo "REVIEW_WORKTREE_GUARD: PASS"