From 3f933876fd6b2f2062b6d3041999cffab4958e5b Mon Sep 17 00:00:00 2001 From: scribu Date: Mon, 5 Aug 2013 02:59:46 +0300 Subject: [PATCH] contrib-list: fix githubify function --- utils/contrib-list | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/utils/contrib-list b/utils/contrib-list index 43d8f154..fbce2819 100755 --- a/utils/contrib-list +++ b/utils/contrib-list @@ -9,14 +9,14 @@ prev_version=$1 linked=$2 githubify() { - local url="https://github.com/$name" - local response_code=$(curl -o /dev/null --silent --head --write-out '%{http_code}\n' $url) + while read name; do + local url="https://github.com/$name" + local response_code=$(curl -o /dev/null --silent --head --write-out '%{http_code}\n' $url) - if [ "200" != "$response_code" ]; then - echo "$response_code: $url" 1>&2; - fi + if [ "200" != "$response_code" ]; then + echo "$response_code: $url" 1>&2; + fi - while read name; do echo " [$name]($url)" done } -- 2.11.0