]> git.sur5r.net Git - openldap/commitdiff
cleanup
authorPierangelo Masarati <ando@openldap.org>
Mon, 5 Nov 2001 08:52:01 +0000 (08:52 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 5 Nov 2001 08:52:01 +0000 (08:52 +0000)
tests/scripts/subfilter.sh

index ebc4978ad12d794acba62e2751c5b2ab3a2bd8d6..61f17c61d587a26db81091cb84daa769b89d0962 100755 (executable)
@@ -1,10 +1,6 @@
 #! /bin/sh
 #
-# Strip entries that belong to subtree $2 (if any)
+# Strip entries that belong to subtree $1
 #
-if test $# == 0 ; then
-       exit 1
-else
-       awk "/^dn:/&&!/$1\$/ {while (\$1!=\"\") {print \$0;getline} print \"\"}"
-fi
+awk "/^dn:/&&!/$1\$/ {while (\$1!=\"\") {print \$0;getline} print \"\"}"