From 2317cdabcd67cb3cc743b6cae5bab3e9f2427405 Mon Sep 17 00:00:00 2001 From: Nick Date: Wed, 21 Jul 2010 19:53:17 +0000 Subject: OpenBSD fix (bug found by Quintum) --- 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 7208ccb..1b04ac5 100755 --- a/scripts/check_db_safety +++ b/scripts/check_db_safety @@ -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 -- cgit v1.2.3