From 988a6b0d81176755cb9a8c24c8d4cf1a46c851da Mon Sep 17 00:00:00 2001 From: alpha912 Date: Fri, 14 Aug 2026 15:34:43 +0000 Subject: [PATCH] Print success confirmation from check-policy.sh The policy check stayed silent on a passing run, giving no positive signal in CI logs unlike check-security-pointer.sh's "security pointer ok" line. Echo "policy check ok" once all checks pass, right before the accumulated exit code is returned. --- scripts/check-policy.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/check-policy.sh b/scripts/check-policy.sh index 2ee7fa6..6423a41 100644 --- a/scripts/check-policy.sh +++ b/scripts/check-policy.sh @@ -71,4 +71,8 @@ if grep -n -Ei "$core_dp_shipping_pattern" "${content_files[@]}"; then fail=1 fi +if [ "$fail" -eq 0 ]; then + echo "policy check ok" +fi + exit "$fail"