X-Git-Url: https://git.distorted.org.uk/~mdw/newsgate/blobdiff_plain/fa6845966ab6538c2246fa0cfb25c3bc500bbd41..70d89fa099c21266717fb426504bb81a4888ae98:/bin/addrcheck diff --git a/bin/addrcheck b/bin/addrcheck new file mode 100755 index 0000000..ca6f3fb --- /dev/null +++ b/bin/addrcheck @@ -0,0 +1,10 @@ +#! /bin/sh + +set -e +kind=${1?kind} +tail=${2?tail} +if cdb -q groups.cdb "$kind:$tail" >/dev/null 2>&1; then + echo + +else + echo "-bad tag $tail" +fi