Add lint to pre-commit hook

This commit is contained in:
Daniel Martí 2015-10-05 11:37:14 +02:00
parent b1dc7c7b5e
commit 4acc100ea1
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,11 @@
#!/bin/sh #!/bin/sh
set -o errexit
set -o nounset
set -o pipefail
# Redirect output to stderr.
exec 1>&2
./tools/verify-rewritemeta.sh ./tools/verify-rewritemeta.sh
fdroid lint

View file

@ -7,9 +7,6 @@ set -o errexit
set -o nounset set -o nounset
set -o pipefail set -o pipefail
# Redirect output to stderr.
exec 1>&2
files=$(fdroid rewritemeta -l) files=$(fdroid rewritemeta -l)
if [[ -n "$files" ]]; then if [[ -n "$files" ]]; then
echo "ERROR: Run rewritemeta to fix formatting on these files:" echo "ERROR: Run rewritemeta to fix formatting on these files:"