Skip to content

Commit 0208071

Browse files
committed
Fix syntax error 2nd time
1 parent 502704b commit 0208071

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/consolidate-snippets.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ jobs:
2525
echo "[" > public/consolidated/all_snippets.json
2626
find public/data -name "*.json" ! -name "_index.json" -exec sh -c '
2727
for file; do
28-
jq -c ".[]" "$file" | sed "s/^/{\"language\": \"$(basename "$file" .json)\", /" | sed "s/}/},/" >> public/consolidated/all_snippets.json
28+
jq -c ".[]" "$file" | \
29+
sed "s/^/{\"language\": \"$(basename "$file" .json)\", /" | \
30+
sed "s/}$/}/" >> public/consolidated/all_snippets.json
2931
done
3032
' _ {} +
3133
sed -i '$ s/,$//' public/consolidated/all_snippets.json

0 commit comments

Comments
 (0)