fdroiddata/tools/verify-rewritemeta.sh

16 lines
306 B
Bash
Raw Normal View History

2015-09-25 11:11:49 +00:00
#!/bin/bash
2015-09-12 01:16:14 +00:00
# Check that there are no errors in the metadata files and that they are
# formatted correctly.
2015-09-12 01:16:14 +00:00
set -o errexit
set -o nounset
set -o pipefail
2015-09-12 01:16:14 +00:00
files=$(fdroid rewritemeta -l)
if [[ -n "$files" ]]; then
echo "ERROR: Run rewritemeta to fix formatting on these files:"
echo "$files"
exit 1
2015-09-12 01:16:14 +00:00
fi