support localized files and graphics in git pre-commit hook
This commit is contained in:
parent
74696ba2ac
commit
24e96be6d0
|
@ -7,7 +7,7 @@ set -o pipefail
|
||||||
# Redirect output to stderr.
|
# Redirect output to stderr.
|
||||||
exec 1>&2
|
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
|
if [[ -n "$apps" ]]; then
|
||||||
fdroid lint -f $apps
|
fdroid lint -f $apps
|
||||||
|
|
Loading…
Reference in a new issue