2015-09-25 11:11:49 +00:00
|
|
|
#!/bin/bash
|
2015-09-12 01:16:14 +00:00
|
|
|
|
2015-09-28 23:52:12 +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
|
|
|
|
2015-09-28 23:52:12 +00:00
|
|
|
set -o errexit
|
|
|
|
set -o nounset
|
|
|
|
set -o pipefail
|
2015-09-12 01:16:14 +00:00
|
|
|
|
2015-09-28 23:52:12 +00:00
|
|
|
# Redirect output to stderr.
|
|
|
|
exec 1>&2
|
2015-09-12 01:16:14 +00:00
|
|
|
|
2015-09-28 23:52:12 +00:00
|
|
|
files=$(fdroid rewritemeta -l)
|
2015-09-25 05:55:26 +00:00
|
|
|
if [[ -n "$files" ]]; then
|
2015-09-28 23:52:12 +00:00
|
|
|
echo "ERROR: Run rewritemeta to fix formatting on these files:"
|
2015-09-25 05:55:26 +00:00
|
|
|
echo "$files"
|
|
|
|
exit 1
|
2015-09-12 01:16:14 +00:00
|
|
|
fi
|