mirror of
https://github.com/StevenBlack/hosts.git
synced 2024-07-16 00:00:31 +02:00
Issue #2104: fix — Remove cruft in the stats bash script.
This commit is contained in:
parent
4cfe084f40
commit
410aca3cc3
4
stats.sh
4
stats.sh
@ -1,12 +1,10 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
echo \n "" > stats.out
|
echo \n "" > stats.out
|
||||||
for TAG_DATE in $(git tag --sort=creatordate --format='%(refname:short),%(creatordate:short)'); do
|
for TAG_DATE in $(git tag --sort=creatordate --format='%(refname:short),%(creatordate:short)'); do
|
||||||
# echo "$TAGDATA"
|
# echo "$TAG_DATE"
|
||||||
split=(${TAG_DATE//,/ })
|
split=(${TAG_DATE//,/ })
|
||||||
# echo ${split[0]}
|
# echo ${split[0]}
|
||||||
git checkout tags/${split[0]} readmeData.json
|
git checkout tags/${split[0]} readmeData.json
|
||||||
entries=$(jq '.base.entries' readmeData.json)
|
entries=$(jq '.base.entries' readmeData.json)
|
||||||
echo ${split[1]},${entries} >> stats.out
|
echo ${split[1]},${entries} >> stats.out
|
||||||
done
|
done
|
||||||
cat stats.out
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user