added example_output and adjusted spacing in printf statement

This commit is contained in:
Trent Palmer 2017-07-23 12:09:32 -07:00
parent f1d972d2c6
commit 5fe8efb2bb
2 changed files with 13 additions and 1 deletions

12
example_output Normal file
View File

@ -0,0 +1,12 @@
207 hyde-x zyro 2016-02-29T16:37:49Z
60 hugo-theme-slim zhe 2017-07-03T16:14:24Z
41 startbootstrap-clean-blog humboldtux 2017-02-10T21:00:45Z
30 hugo-theme-blueberry-detox allnightgrocery 2017-01-29T01:05:46Z
8 greyshade cxfksword 2015-07-19T18:06:35Z
7 hugo-remark-minion eueung 2016-12-26T09:19:30Z
7 gindoro cdipaolo 2015-10-02T15:44:30Z
5 tinyce-hugo-theme roperzh 2017-06-19T20:44:33Z
4 hugo-journal mpas 2015-10-31T23:25:19Z
3 hugo-theme-zen frjo 2017-07-19T07:49:55Z
hugo-theme-introduction vickylaixy
hugo-theme-foundation6-blog htko89

View File

@ -32,7 +32,7 @@ do
last_commit_date=$(curl -s \
"${REPOS_API_URL}/${hugo_theme_user}/${hugo_theme}/commits/${commit_hash}" \
| grep date | head -1 | awk '{print $2}' | sed -e 's/"//g')
printf "%-8s %-20s %-20s %20s\n" "$stars" "$hugo_theme" \
printf "%-8s %-30s %-30s %30s\n" "$stars" "$hugo_theme" \
"$hugo_theme_user" "$last_commit_date" >> ~/bin/rank_hugo_themes.log
done