changeset 77:6c1d4e261fdf draft

OpenBSD fix (bug found by Quintum)
author Nick <nick@somerandomnick.ano>
date Wed, 21 Jul 2010 19:53:17 +0000
parents 2476adbea929
children f37d8fca5548
files scripts/check_db_safety
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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