15 lines
334 B
Bash
Executable File
15 lines
334 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
REPORT_PATH="${1:?review file required}"
|
|
CONTENT="$(cat "$REPORT_PATH")"
|
|
|
|
if [[ "$CONTENT" == *'替换'* ]]; then
|
|
if [[ "$CONTENT" != *'freshness_hint=same-day-blocker-switch'* ]]; then
|
|
echo "missing blocker switch freshness hint" >&2
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
echo "BLOCKER_SWITCH_GUARD: PASS"
|