fdroiddata/hooks/pre-commit

12 lines
203 B
Plaintext
Raw Normal View History

#!/bin/sh
2015-10-05 09:37:14 +00:00
set -o errexit
set -o nounset
set -o pipefail
# Redirect output to stderr.
exec 1>&2
fdroid lint -f $(git diff --cached --name-only --diff-filter=ACM | sed -n 's@metadata/\(.*\).txt@\1@p')