From: Dinko Korunic Date: Tue, 10 Mar 2009 13:51:53 +0000 (+0100) Subject: - delete trailing and leading spaces... X-Git-Tag: v3.3.1-1~6 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=4d729e75290638889e599f334b38c55704fafb05;p=spamassassin-cn.git - delete trailing and leading spaces... --- diff --git a/debian/postinst b/debian/postinst index 99933b2..c6e4e1c 100755 --- a/debian/postinst +++ b/debian/postinst @@ -217,6 +217,8 @@ if [ -f $examdir/local.cf ]; then trusted_networks_clean="$trusted_networks_clean $i" fi done + trusted_networks_clean=$(echo "$trusted_networks_clean" \ + | sed 's/^[ \t]*//;s/[ \t]*$//') # ... and replace if non-zero if [ ! -z "$trusted_networks_clean" ]; then trusted_networks=$trusted_networks_clean