Mercurial > hg > anonet-resdb
comparison scripts/check_db_safety @ 77:6c1d4e261fdf draft
OpenBSD fix (bug found by Quintum)
author | Nick <nick@somerandomnick.ano> |
---|---|
date | Wed, 21 Jul 2010 19:53:17 +0000 |
parents | 059b5f3d7808 |
children | f37d8fca5548 |
comparison
equal
deleted
inserted
replaced
76:2476adbea929 | 77:6c1d4e261fdf |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 if [ "$(ls db/dom/ | tr -d 'a-z0-9\n-' | wc -c)" != 0 ]; then | 2 if [ "$(ls db/dom/ | tr -d 'a-z0-9\n-' | wc -c | tr -d ' \t')" != 0 ]; then |
3 echo "There's a bad TLD. You probably don't want to run any shell scripts." >&2 | 3 echo "There's a bad TLD. You probably don't want to run any shell scripts." >&2 |
4 exit 1 | 4 exit 1 |
5 fi | 5 fi |
6 for tld in db/dom/* ; do | 6 for tld in db/dom/* ; do |
7 if [ "$(ls $tld/ | tr -d 'a-z0-9\n-' | wc -c)" != 0 ]; then | 7 if [ "$(ls $tld/ | tr -d 'a-z0-9\n-' | wc -c)" != 0 ]; then |