From 85541b499aa3af267616cb3d27374b7432b71b55 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Tue, 18 Aug 2015 16:37:50 +0200 Subject: [PATCH] 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 --- download-stats.sh | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/download-stats.sh b/download-stats.sh index 6ce09c3..a37a730 100755 --- a/download-stats.sh +++ b/download-stats.sh @@ -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 @@ -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":'