Skip to content

Commit

Permalink
download-stats: update to the latest release
Browse files Browse the repository at this point in the history
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 <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Aug 18, 2015
1 parent d65a1b8 commit 85541b4
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions download-stats.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
#!/bin/sh

# This script shows the download stats on GitHub. Update the id using the
# output of curl -s https://api.github.com/repos/git-for-windows/git/releases
# 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
# }'

# 2.3.4.windows.2
#id=${1:-1093748}
# 2.3.5.windows.4
Expand All @@ -25,7 +33,15 @@
# 2.4.2.windows.1
#id=${1:-1345088}
# 2.4.3.windows.1
id=${1:-1409345}
#id=${1:-1409345}
# v2.4.4.windows.2
#id=${1:-1441039}
# v2.4.5.windows.1
#id=${1:-1471836}
# v2.4.6.windows.1
#id=${1:-1554860}
# 2.5.0.windows.1
id=${1:-1683962}

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

0 comments on commit 85541b4

Please sign in to comment.