2016-06-20 10:18:31 +00:00
|
|
|
#!/bin/bash
|
2014-05-27 11:52:22 +00:00
|
|
|
|
2015-10-05 09:37:14 +00:00
|
|
|
set -o errexit
|
|
|
|
set -o nounset
|
|
|
|
set -o pipefail
|
|
|
|
|
|
|
|
# Redirect output to stderr.
|
|
|
|
exec 1>&2
|
|
|
|
|
2017-05-30 08:52:35 +00:00
|
|
|
apps="$(git diff --cached --name-only --diff-filter=ACM | sed -n 's,metadata/\([^/]*\)\.txt,\1,p')"
|
2016-06-17 10:36:18 +00:00
|
|
|
|
2016-06-20 10:18:31 +00:00
|
|
|
if [[ -n "$apps" ]]; then
|
2017-05-30 08:52:35 +00:00
|
|
|
fdroid lint -f $apps
|
2016-06-20 10:18:31 +00:00
|
|
|
fi
|