scripts/pam.*.files: Optimize filename check

This commit is contained in:
Дмитрий Левин 2007-09-29 15:04:43 +00:00
parent 5209355a19
commit b29c6e2b2d
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh -efu
while IFS=$'\t' read -r f t; do
[ -z "${t##*ASCII *text*}" -a -z "${f%%${RPM_BUILD_ROOT-}/etc/pam.d/*}" ] &&
[ -z "${f##${RPM_BUILD_ROOT-}/etc/pam.d/*}" -a -z "${t##*ASCII *text*}" ] &&
echo "$f" ||:
done

View File

@ -1,5 +1,5 @@
#!/bin/sh -efu
while IFS=$'\t' read -r f t; do
[ -z "${t##*ASCII *text*}" -a -z "${f%%${RPM_BUILD_ROOT-}/etc/pam.d/*}" ] &&
[ -z "${f##${RPM_BUILD_ROOT-}/etc/pam.d/*}" -a -z "${t##*ASCII *text*}" ] &&
echo "$f" ||:
done