changeset 896:80b445c8c88a draft

windows sucks.
author Nick <nick@somerandomnick.ano>
date Fri, 20 Jan 2012 03:12:42 +0000
parents 6b43d694e4f0
children 3791d0925522 19cf9e1f41db 13df42eaa42e
files scripts/check_db_safety
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/check_db_safety	Fri Jan 20 01:55:16 2012 +0000
+++ b/scripts/check_db_safety	Fri Jan 20 03:12:42 2012 +0000
@@ -18,7 +18,7 @@
    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