From 699e7c59ef8cebdb9721b31c3f6eb58588bd6dc1 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Thu, 28 Sep 2023 16:27:22 +0200 Subject: remove unnessary quoting when extracting fields from JSON --- src/extract.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/extract.sh b/src/extract.sh index 3927f38..800cb8f 100755 --- a/src/extract.sh +++ b/src/extract.sh @@ -77,12 +77,12 @@ git ls-files --cached --exclude-standard --other | "$(dirname "$0")"/extract-$ext.sh "$input_file" done | while read -r item; do - start_row=$(echo "$item" | jq '.match.start.row') - end_row=$(echo "$item" | jq '.match.end.row') + start_row=$(echo "$item" | jq .match.start.row) + end_row=$(echo "$item" | jq .match.end.row) - last_commit=$(echo "$item" | jq '.last_commit' -r) - text=$(echo "$item" | jq '.text' -r) - file=$(echo "$item" | jq '.file' -r) + last_commit=$(echo "$item" | jq .last_commit -r) + text=$(echo "$item" | jq .text -r) + file=$(echo "$item" | jq .file -r) first_commit=$(git --no-pager log --reverse -S"$text" --format=%H | \ head -n 1) -- cgit v1.2.3