From b55ec9fa21fa8bf581a5f2227dc5628c99b97c61 Mon Sep 17 00:00:00 2001 From: "Alex Pooley (@zuedev)" Date: Thu, 5 Feb 2026 16:17:30 +0000 Subject: add .gitattributes and strip CRLF from schema loading --- validators/bash/validate.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'validators') diff --git a/validators/bash/validate.sh b/validators/bash/validate.sh index 201c0b7..dddb811 100644 --- a/validators/bash/validate.sh +++ b/validators/bash/validate.sh @@ -63,9 +63,9 @@ validate() { exit 1 fi - # Load schema + # Load schema (also strip carriage returns for Windows compatibility) local schema - if ! schema=$(jq -c . "$SCHEMA_PATH" 2>&1); then + if ! schema=$(tr -d '\r' < "$SCHEMA_PATH" | jq -c . 2>&1); then echo -e "${RED}Error parsing schema: $schema${NC}" >&2 exit 1 fi -- cgit v1.2.3