From bf6b39adba3305246b7a81ef9b4b5b7dba6b3416 Mon Sep 17 00:00:00 2001 From: Tri Nguyen Date: Sat, 30 Mar 2019 23:40:50 +0700 Subject: [PATCH] Clarify testjson.sh output, fix json files --- testjson.sh | 6 ++++-- themes/icons/ascii.json | 2 +- themes/icons/ionicons.json | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/testjson.sh b/testjson.sh index d4df9f9..28e65a9 100755 --- a/testjson.sh +++ b/testjson.sh @@ -1,3 +1,5 @@ #!/bin/sh - -find themes/ -name "*.json"|grep -v invalid|xargs cat|json_verify -s +find themes/ -name "*.json"|grep -v invalid| +while read f; do + cat "$f" | json_verify 2>&1 > /dev/null | sed "1 s@\(.*error\)@\nError in $f\n\1@g" +done diff --git a/themes/icons/ascii.json b/themes/icons/ascii.json index 84a5890..6358442 100644 --- a/themes/icons/ascii.json +++ b/themes/icons/ascii.json @@ -124,7 +124,7 @@ "new": { "prefix": "[n]" }, "modified": { "prefix": "[m]" }, "deleted": { "prefix": "[d]" } - } + }, "dunst": { "muted": { "prefix": "dunst(muted)"}, "unmuted": { "prefix": "dunst" } diff --git a/themes/icons/ionicons.json b/themes/icons/ionicons.json index 6e64537..f2f8fc1 100644 --- a/themes/icons/ionicons.json +++ b/themes/icons/ionicons.json @@ -158,7 +158,7 @@ }, "taskwarrior": { "prefix": "\uf454" - } + }, "dunst": { "muted": { "prefix": "\uf39a"}, "unmuted": { "prefix": "\uf39b" }