Files
llm-intelligence/scripts/review/current_row_revocation_guard.sh
2026-05-29 18:48:48 +08:00

13 lines
363 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROW_FILE="${1:?row file required}"
ROW_CONTENT="$(cat "$ROW_FILE")"
if [[ "$ROW_CONTENT" == *'✅ 已修复'* || "$ROW_CONTENT" == *'✅ 已完成'* || "$ROW_CONTENT" == *'✅ 已恢复'* ]]; then
echo "resolved current row should be revoked from current table" >&2
exit 1
fi
echo "CURRENT_ROW_REVOCATION_GUARD: PASS"