ALLOWED=${ALLOWED:-^${S}/etc/env.d}
If you are using regex here, why don't you use it in find?
find "${S}" ! -type d ! -name '*.so*' ! -regex ${ALLOWED} -print0 |
xargs -0 /bin/rm -f
Note that you will need to change ^${S}/etc/env.d to ^${S}/etc/env\.d.* as it
needs to be a full match( btw. you are not escaping a "." in your regex )
--
Best Regards,
Piotr Jaroszyński
--
[email protected] mailing list
