Add lint to pre-commit hook
This commit is contained in:
parent
b1dc7c7b5e
commit
4acc100ea1
|
@ -1,3 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
# Redirect output to stderr.
|
||||
exec 1>&2
|
||||
|
||||
./tools/verify-rewritemeta.sh
|
||||
fdroid lint
|
||||
|
|
|
@ -7,9 +7,6 @@ set -o errexit
|
|||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
# Redirect output to stderr.
|
||||
exec 1>&2
|
||||
|
||||
files=$(fdroid rewritemeta -l)
|
||||
if [[ -n "$files" ]]; then
|
||||
echo "ERROR: Run rewritemeta to fix formatting on these files:"
|
||||
|
|
Loading…
Reference in a new issue