From 4d729e75290638889e599f334b38c55704fafb05 Mon Sep 17 00:00:00 2001 From: Dinko Korunic Date: Tue, 10 Mar 2009 14:51:53 +0100 Subject: [PATCH] - delete trailing and leading spaces... --- debian/postinst | 2 ++ 1 file changed, 2 insertions(+) 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 -- 1.7.10.4