Browse Source

support localized files and graphics in git pre-commit hook

master
Hans-Christoph Steiner 4 years ago
parent
commit
24e96be6d0
  1. 4
      hooks/pre-commit

4
hooks/pre-commit

@ -7,8 +7,8 @@ set -o pipefail
# Redirect output to stderr.
exec 1>&2
apps="$(git diff --cached --name-only --diff-filter=ACM | sed -n 's@metadata/\(.*\).txt@\1@p')"
apps="$(git diff --cached --name-only --diff-filter=ACM | sed -n 's,metadata/\([^/]*\)\.txt,\1,p')"
if [[ -n "$apps" ]]; then
fdroid lint -f $apps
fdroid lint -f $apps
fi
Loading…
Cancel
Save