fdroiddata/hooks/pre-commit
Daniel Martí c1894d3e41 pre-commit hook: use lint -f
This avoids calling rewritemeta separately, which means parsing all the
metadata files once instead of twice.

This reduces the running time of the pre-commit script from ~3s to ~2s
on my machine.
2015-12-07 20:13:36 +01:00

11 lines
113 B
Bash
Executable file

#!/bin/sh
set -o errexit
set -o nounset
set -o pipefail
# Redirect output to stderr.
exec 1>&2
fdroid lint -f