- delete trailing and leading spaces...
authorDinko Korunic <kreator@carnet.hr>
Tue, 10 Mar 2009 13:51:53 +0000 (14:51 +0100)
committerDinko Korunic <kreator@carnet.hr>
Tue, 10 Mar 2009 13:51:53 +0000 (14:51 +0100)
debian/postinst

index 99933b2..c6e4e1c 100755 (executable)
@@ -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