Skip to content

Commit e11656f

Browse files
committed
Update validate-json.yml
1 parent 48396f9 commit e11656f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/validate-json.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ jobs:
6666
- name: Find and validate data.json files
6767
run: |
6868
echo "Validating JSON files..."
69-
for FILE in $(find Demo -name "data.json"); do
69+
# Use -print0 and read -d '' to handle filenames with spaces properly
70+
find Demo -name "data.json" -print0 | while IFS= read -r -d '' FILE; do
7071
echo "Checking $FILE"
7172
# Check JSON syntax
7273
if ! jq empty "$FILE" 2>/dev/null; then

0 commit comments

Comments
 (0)