[smc-discuss] [Git][smc/smc-website][4-font-download-automation] Don't fail if folder exists
Balasankar "Balu" C
gitlab at mg.gitlab.com
Sun Oct 7 01:43:47 PDT 2018
Balasankar "Balu" C pushed to branch 4-font-download-automation at SMC / SMC Website
Commits:
eb9897b4 by Balasankar "Balu" C at 2018-10-07T08:43:11Z
Don't fail if folder exists
- - - - -
1 changed file:
- update_fonts.sh
Changes:
=====================================
update_fonts.sh
=====================================
@@ -8,7 +8,7 @@ mkdir -p downloads/fonts
cd downloads/fonts || exit
fonts=(anjalioldlipi rachana meera manjari raghumalayalamsans dyuthi keraleeyam uroob chilanka karumbi)
for font in "${fonts[@]}"; do
- mkdir "$font"
+ mkdir -p "$font"
cd "$font" || exit
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 '"')
echo "$font : $version"
View it on GitLab: https://gitlab.com/smc/smc-website/commit/eb9897b40348a6464ee165d5e081c81ee0b45abe
--
View it on GitLab: https://gitlab.com/smc/smc-website/commit/eb9897b40348a6464ee165d5e081c81ee0b45abe
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/20181007/4f66ce2e/attachment-0002.html>
More information about the discuss
mailing list