We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1e1f37 commit b55ec9fCopy full SHA for b55ec9f
2 files changed
.gitattributes
@@ -0,0 +1,16 @@
1
+# Ensure consistent line endings (LF) for all text files
2
+* text=auto eol=lf
3
+
4
+# Explicitly mark certain files as text
5
+*.md text
6
+*.json text
7
+*.jsonc text
8
+*.gitinfo text
9
+*.yml text
10
+*.yaml text
11
+*.js text
12
+*.ps1 text
13
+*.sh text eol=lf
14
15
+# Shell scripts must always use LF
16
+validators/bash/*.sh text eol=lf
validators/bash/validate.sh
@@ -63,9 +63,9 @@ validate() {
63
exit 1
64
fi
65
66
- # Load schema
+ # Load schema (also strip carriage returns for Windows compatibility)
67
local schema
68
- if ! schema=$(jq -c . "$SCHEMA_PATH" 2>&1); then
+ if ! schema=$(tr -d '\r' < "$SCHEMA_PATH" | jq -c . 2>&1); then
69
echo -e "${RED}Error parsing schema: $schema${NC}" >&2
70
71
0 commit comments