summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick <nick@somerandomnick.ano>2012-01-20 03:12:42 +0000
committerNick <nick@somerandomnick.ano>2012-01-20 03:12:42 +0000
commit5b140efcd549becbb81bff51bf11e1709ab25924 (patch)
treee29c8791a6bed2c63ea334b55ab15898c78df63d
parent355c0ecf7e19d5d4db6d11f6176c61e03fdbd688 (diff)
downloadresdb-5b140efcd549becbb81bff51bf11e1709ab25924.tar.gz
resdb-5b140efcd549becbb81bff51bf11e1709ab25924.zip
windows sucks.
-rwxr-xr-xscripts/check_db_safety2
1 files changed, 1 insertions, 1 deletions
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