15 lines
318 B
Bash
Executable File
15 lines
318 B
Bash
Executable File
#!/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"
|