fix star_gazers assignment for theme repos which are forks

This commit is contained in:
Trent Palmer 2017-07-31 06:45:01 -07:00
parent aa36b4e6da
commit 42d9dff5d4

View File

@ -43,8 +43,8 @@ do
stars=""
stars=$(curl -s "${REPOS_API_URL}/${hugo_theme_user}/${hugo_theme}" \
| grep stargazers_count | awk '{print $2}' | sed -e 's/,$//g' \
| awk '{print $NF}')
| grep stargazers_count | head -1 | awk '{print $2}' \
| sed -e 's/,$//g')
[[ -n "${stars}" ]] || continue
last_commit_date=""