diff --git a/rebuild-hosts.allow.sh b/rebuild-hosts.allow.sh index dd6f9df..7169f87 100755 --- a/rebuild-hosts.allow.sh +++ b/rebuild-hosts.allow.sh @@ -6,7 +6,7 @@ # Copyright (c) 2006 TundraWare Inc., Des Plaines, IL USA # All Rights Reserved -RCSID='$Id: rebuild-hosts.allow.sh,v 1.102 2006/05/03 05:15:30 tundra Exp $' +RCSID='$Id: rebuild-hosts.allow.sh,v 1.103 2006/05/03 06:24:24 tundra Exp $' BASE="/usr/local/etc/tperimeter" EPILOGUE=${BASE}/epilogue @@ -27,14 +27,23 @@ cd $1 for x in * do - echo -n $x": " - cd $x - for y in * - do - echo -n $y" " - done - echo " :$2" - cd .. + if [ $x != '*' ] + then + cd $x + list="" + for y in * + do + if [ $y != '*' ] + then + list=${list}${y}" " + fi + done + if [ "$list" ] + then + echo "$x: $list :$2" + fi + cd .. + fi done fi }