From 3b4227cd1e0401963a502aa171ac2a36d8e1a9be Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 12 Jan 2014 23:24:24 +0100 Subject: Fix use json_pp as tidier (available in stable). --- localtidygeojson | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/localtidygeojson b/localtidygeojson index 9cc0a1e..7dbcf7b 100755 --- a/localtidygeojson +++ b/localtidygeojson @@ -16,10 +16,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . # -# Depends: jq +# Depends: perl-modules set -eu -jq . "$1" > "$1"~ -perl -0 -i -pe 's/ /\t/g; s/},\s*{/}, {/g; s/\[\s*([\d.,]+)\s*([\d.]+)\s*\]/[$1 $2]/g' "$1"~ +json_pp -json_opt pretty,canonical < "$1" > "$1"~ +perl -0 -i -pe 's/ /\t/g; s/},\s*{/}, {/g; s/\[\s*([\d.,]+)\s*([\d.]+)\s*\]/[$1 $2]/g' "$1"~ mv -f "$1"~ "$1" -- cgit v1.2.3