summaryrefslogtreecommitdiff
path: root/scripts/check_db_safety
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/check_db_safety')
-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 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