Skip to content

Commit 85541b4

Browse files
committed
download-stats: update to the latest release
This trick was performed by paste-editing the output of curl -s https://api.github.com/repos/git-for-windows/git/releases | tac | sed -n '/^ "tag_name":/{ N; s/.*"tag_name": "\([^"]*\)"[^"]*"id": \([0-9]*\).*/# \1\nid=${1:-\2}/p }' Signed-off-by: Johannes Schindelin <[email protected]>
1 parent d65a1b8 commit 85541b4

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

download-stats.sh

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
#!/bin/sh
22

33
# This script shows the download stats on GitHub. Update the id using the
4-
# output of curl -s https://api.github.com/repos/git-for-windows/git/releases
4+
# output of:
5+
#
6+
# curl -s https://api.github.com/repos/git-for-windows/git/releases |
7+
# tac |
8+
# sed -n '/^ "tag_name":/{
9+
# N;
10+
# s/.*"tag_name": "\([^"]*\)"[^"]*"id": \([0-9]*\).*/# \1\nid=${1:-\2}/p
11+
# }'
12+
513
# 2.3.4.windows.2
614
#id=${1:-1093748}
715
# 2.3.5.windows.4
@@ -25,7 +33,15 @@
2533
# 2.4.2.windows.1
2634
#id=${1:-1345088}
2735
# 2.4.3.windows.1
28-
id=${1:-1409345}
36+
#id=${1:-1409345}
37+
# v2.4.4.windows.2
38+
#id=${1:-1441039}
39+
# v2.4.5.windows.1
40+
#id=${1:-1471836}
41+
# v2.4.6.windows.1
42+
#id=${1:-1554860}
43+
# 2.5.0.windows.1
44+
id=${1:-1683962}
2945

3046
curl -s https://api.github.com/repos/git-for-windows/git/releases/$id/assets |
3147
grep -e '"name":' -e '"download_count":'

0 commit comments

Comments
 (0)