scripts/pam.*.files: Optimize filename check
This commit is contained in:
parent
5209355a19
commit
b29c6e2b2d
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user