12 lines
225 B
Bash
Executable File
12 lines
225 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
STATUS_FILE="${1:?phase status file required}"
|
|
|
|
if ! grep -q '^ROOT_CAUSE class=' "$STATUS_FILE"; then
|
|
echo "missing root cause summary" >&2
|
|
exit 1
|
|
fi
|
|
|
|
echo "ROOT_CAUSE_GUARD: PASS"
|