From 5b140efcd549becbb81bff51bf11e1709ab25924 Mon Sep 17 00:00:00 2001 From: Nick Date: Fri, 20 Jan 2012 03:12:42 +0000 Subject: windows sucks. --- scripts/check_db_safety | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/check_db_safety b/scripts/check_db_safety index d5e950b..db69015 100755 --- a/scripts/check_db_safety +++ b/scripts/check_db_safety @@ -18,7 +18,7 @@ for tld in db/dom/* ; do exit 1 fi for ns in $dom/ns/* ; do - if [ "$(cat $ns | tr -d '0-9.\n' | wc -c | tr -d ' \t')" != 0 ]; then + if [ "$(cat $ns | tr -d '0-9.\r\n' | wc -c | tr -d ' \t')" != 0 ]; then domain="$(basename $dom).$(basename $tld)" nsname="$(basename $ns)" echo "There's a bad nameserver IP under $domain, for" >&2 -- cgit v1.2.3