Clarify testjson.sh output, fix json files

This commit is contained in:
Tri Nguyen 2019-03-30 23:40:50 +07:00
parent 0207e7fe16
commit bf6b39adba
3 changed files with 6 additions and 4 deletions

View file

@ -1,3 +1,5 @@
#!/bin/sh #!/bin/sh
find themes/ -name "*.json"|grep -v invalid|
find themes/ -name "*.json"|grep -v invalid|xargs cat|json_verify -s while read f; do
cat "$f" | json_verify 2>&1 > /dev/null | sed "1 s@\(.*error\)@\nError in $f\n\1@g"
done

View file

@ -124,7 +124,7 @@
"new": { "prefix": "[n]" }, "new": { "prefix": "[n]" },
"modified": { "prefix": "[m]" }, "modified": { "prefix": "[m]" },
"deleted": { "prefix": "[d]" } "deleted": { "prefix": "[d]" }
} },
"dunst": { "dunst": {
"muted": { "prefix": "dunst(muted)"}, "muted": { "prefix": "dunst(muted)"},
"unmuted": { "prefix": "dunst" } "unmuted": { "prefix": "dunst" }

View file

@ -158,7 +158,7 @@
}, },
"taskwarrior": { "taskwarrior": {
"prefix": "\uf454" "prefix": "\uf454"
} },
"dunst": { "dunst": {
"muted": { "prefix": "\uf39a"}, "muted": { "prefix": "\uf39a"},
"unmuted": { "prefix": "\uf39b" } "unmuted": { "prefix": "\uf39b" }