On Wed, Feb 17, 2010 at 10:33:00PM +0000, Roger Leigh wrote:

The attached patch adds support for whole-line comments (starting with "#") and empty lines to setup.d/20copyfiles.
            while read file; do
+               if echo "$file" | egrep -q '^(#|$)' ; then
+                   continue
+               fi
Thanks, this looks very useful, and will also be good in the
nssdatabases script.  One question: what's the '|$' for in
the regex?  Isn't '^#' sufficient?
It's for ignoring empty lines.

CU Sascha

--
http://sascha.silbe.org/
http://www.infra-silbe.de/

Attachment: signature.asc
Description: Digital signature

Reply via email to