1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-05 09:47:01 +01:00
Gadgetbridge/config/travis/validate_fastlane_metadata.sh
mueller-ma e4802c9402 Check length of descriptions for F-Droid (#1083)
* Check length of descriptions for F-Droid

Fixes #1080

* Shorten en-US string
2018-05-06 16:36:39 +02:00

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