Check length of descriptions for F-Droid (#1083)

* Check length of descriptions for F-Droid

Fixes #1080

* Shorten en-US string
This commit is contained in:
mueller-ma
2018-05-06 16:36:39 +02:00
committed by Andreas Shimokawa
parent b585fde78a
commit e4802c9402
3 changed files with 29 additions and 2 deletions
@@ -0,0 +1,25 @@
#!/usr/bin/env bash
exitcode=0
for file in fastlane/metadata/android/*/full_description.txt
do
chars=$(cat $file | wc -m)
if [ "$chars" -gt 4000 ]
then
echo "$file too long"
let exitcode++
fi
done
for file in fastlane/metadata/android/*/short_description.txt
do
chars=$(cat $file | wc -m)
if [ "$chars" -gt 80 ]
then
echo "$file too long"
let exitcode++
fi
done
exit $exitcode