diff options
author | Jonas Smedegaard <dr@jones.dk> | 2007-06-06 11:05:48 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2007-06-06 11:05:48 +0000 |
commit | 97a50dc6cf393a39b6735dd6907a8a6526e1f553 (patch) | |
tree | 5e45648c6c0957cab2bb0e81b40a9a1c54e32dd4 /postfix | |
parent | dba08fff4b4eebfa590bdba2285eb3375c10b503 (diff) |
Drop unneeded grep (sed strips comments, so grepping really only stripped empty lines).
Diffstat (limited to 'postfix')
-rwxr-xr-x | postfix/postfix.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/postfix/postfix.sh b/postfix/postfix.sh index 7a43782..cf26162 100755 --- a/postfix/postfix.sh +++ b/postfix/postfix.sh @@ -3,7 +3,7 @@ # /etc/local-COMMON/postfix/postfix.sh # Copyright 2002-2004 Jonas Smedegaard <dr@jones.dk> # -# $Id: postfix.sh,v 1.34 2006-10-23 20:31:42 jonas Exp $ +# $Id: postfix.sh,v 1.35 2007-06-06 11:05:48 jonas Exp $ # # Auto-tweak plain installed postfix Debian package # @@ -88,7 +88,7 @@ function getlinesfromfile() { replacements="$replacements;s/$oldparam/$newstring/" done echo -n "$param = " - cat $paramdir/$param | grep -v '^#' | sed 's/#.*//' | tr '\n' ',' | sed -e 's/^[, ]*//;s/[, ]\+/,/g' -e 's/\^/ /g' -e "s/,\$//$replacements" + cat $paramdir/$param | sed 's/#.*//' | tr '\n' ',' | sed -e 's/^[, ]*//;s/[, ]\+/,/g' -e 's/\^/ /g' -e "s/,\$//$replacements" } # Inspired by D. J. Bernstein: http://cr.yp.to/smtp/greeting.html |