mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-10 03:59:24 +01:00
e4802c9402
* Check length of descriptions for F-Droid Fixes #1080 * Shorten en-US string
26 lines
445 B
Bash
26 lines
445 B
Bash
#!/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
|