diff --git a/rank_hugo_themes.bash b/rank_hugo_themes.bash index 820fbcc..65142a2 100755 --- a/rank_hugo_themes.bash +++ b/rank_hugo_themes.bash @@ -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=""