[smc-discuss] [Git][smc/smc-website][master] Get sorted output from API
Balasankar "Balu" C
gitlab at mg.gitlab.com
Sat Feb 23 03:20:54 PST 2019
Balasankar "Balu" C pushed to branch master at SMC / SMC Website
Commits:
32701bbc by Balasankar "Balu" C at 2019-02-23T11:20:43Z
Get sorted output from API
- - - - -
1 changed file:
- update_fonts.sh
Changes:
=====================================
update_fonts.sh
=====================================
@@ -8,7 +8,7 @@ mkdir -p downloads/fonts
cd downloads/fonts || exit
fonts=(gayathri anjalioldlipi rachana meera manjari raghumalayalamsans dyuthi keraleeyam uroob chilanka karumbi )
for font in "${fonts[@]}"; do
- version=$(curl -sSL "https://gitlab.com/api/v4/projects/${FONTS_SLUG}%2F${font}/repository/tags"| jq '.[].name' | grep -i version | sort -V | tail -1 | tr -d '"')
+ version=$(curl -sSL "https://gitlab.com/api/v4/projects/${FONTS_SLUG}%2F${font}/repository/tags??order_by=updated" | jq '.[].name' | head -1 | tr -d '"')
echo "$font : $version"
if [ -z "${version}" ]; then
View it on GitLab: https://gitlab.com/smc/smc-website/commit/32701bbccb8bbd3774d5e421a8cd320afa53e119
--
View it on GitLab: https://gitlab.com/smc/smc-website/commit/32701bbccb8bbd3774d5e421a8cd320afa53e119
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.smc.org.in/pipermail/discuss-smc.org.in/attachments/20190223/016b9395/attachment-0002.html>
More information about the discuss
mailing list