diff options
author | Nick <nick@somerandomnick.ano> | 2010-07-21 19:53:17 +0000 |
---|---|---|
committer | Nick <nick@somerandomnick.ano> | 2010-07-21 19:53:17 +0000 |
commit | 2317cdabcd67cb3cc743b6cae5bab3e9f2427405 (patch) | |
tree | 7d336cea7854d96d98569ef3370e8591030a9395 | |
parent | 1e3029404427f732af14e20c5e8c241a5e35ad98 (diff) | |
download | resdb-2317cdabcd67cb3cc743b6cae5bab3e9f2427405.tar.gz resdb-2317cdabcd67cb3cc743b6cae5bab3e9f2427405.zip |
OpenBSD fix (bug found by Quintum)
-rwxr-xr-x | scripts/check_db_safety | 2 |
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 |