aboutsummaryrefslogtreecommitdiffstats
path: root/src/extract.sh
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2023-09-28 16:27:22 +0200
committerLibravatar Alexander Foremny <aforemny@posteo.de>2023-09-28 16:27:22 +0200
commit699e7c59ef8cebdb9721b31c3f6eb58588bd6dc1 (patch)
tree4e5577290bfb65c9f2ecb226ba0c96ac36ea8d97 /src/extract.sh
parentc0c27cce536c7e10aa92004c539d3e01651acba3 (diff)
remove unnessary quoting when extracting fields from JSON
Diffstat (limited to 'src/extract.sh')
-rwxr-xr-xsrc/extract.sh10
1 files 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)