Skip to content

Commit 79e511c

Browse files
committed
refactor: update manifest validation loop to safely handle filenames with spaces using null-terminated find
1 parent 4e3a952 commit 79e511c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎conformance/bin/run-conformance-demo‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ echo -e "${BOLD}${CYAN}=== Starting Agentic Resource Discovery Conformance Verif
2121
# 1. Verify manifest files
2222
echo -e "\n${BOLD}[Step 1/3] Validating mock manifest files...${RESET}"
2323
MANIFEST_STATUS=0
24-
for manifest_file in "$PROJECT_ROOT"/conformance/examples/*.json; do
24+
while IFS= read -r -d '' manifest_file; do
2525
echo -e "\n${CYAN}Testing file: $(basename "$manifest_file")${RESET}"
2626
"$PROJECT_ROOT/conformance/bin/conformance-test" manifest "$manifest_file" || MANIFEST_STATUS=1
27-
done
27+
done < <(find "$PROJECT_ROOT/conformance/examples" -type f -name "*.json" -print0)
2828

2929
if [ $MANIFEST_STATUS -eq 0 ]; then
3030
echo -e " ${GREEN}✓ Step 1: All mock manifests are fully spec-compliant!${RESET}"

0 commit comments

Comments
 (0)