# HG changeset patch # User Nick # Date 1279741997 0 # Node ID 6c1d4e261fdf1a9596c1f886ca7e0ac631626a2b # Parent 2476adbea929a2fe77a6d7122caa0955366764ed OpenBSD fix (bug found by Quintum) diff -r 2476adbea929 -r 6c1d4e261fdf scripts/check_db_safety --- a/scripts/check_db_safety Tue Jul 20 04:52:26 2010 +0000 +++ b/scripts/check_db_safety Wed Jul 21 19:53:17 2010 +0000 @@ -1,5 +1,5 @@ #!/bin/sh -if [ "$(ls db/dom/ | tr -d 'a-z0-9\n-' | wc -c)" != 0 ]; then +if [ "$(ls db/dom/ | tr -d 'a-z0-9\n-' | wc -c | tr -d ' \t')" != 0 ]; then echo "There's a bad TLD. You probably don't want to run any shell scripts." >&2 exit 1 fi