diff options
author | pragmo <pragmo@pragmo.ano> | 2010-10-10 08:59:44 +0000 |
---|---|---|
committer | pragmo <pragmo@pragmo.ano> | 2010-10-10 08:59:44 +0000 |
commit | d4dc252380c4141eb7b22c411eca755d182bc8c9 (patch) | |
tree | b8e2cdfb9485fc69375e15767410c69be456ea46 | |
parent | 297c6c6da7f3acd55f8f8f0592df30dae5aa6cd8 (diff) | |
download | resdb-d4dc252380c4141eb7b22c411eca755d182bc8c9.tar.gz resdb-d4dc252380c4141eb7b22c411eca755d182bc8c9.zip |
modified scripts/nameserver_autogen/dnsmasq_tld_conffile to avoid colors in ls outut :)
-rwxr-xr-x | scripts/nameserver_autogen/dnsmasq_tld_conffile | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/scripts/nameserver_autogen/dnsmasq_tld_conffile b/scripts/nameserver_autogen/dnsmasq_tld_conffile index 5ba2853..83ea348 100755 --- a/scripts/nameserver_autogen/dnsmasq_tld_conffile +++ b/scripts/nameserver_autogen/dnsmasq_tld_conffile @@ -8,9 +8,12 @@ sh scripts/check_db_safety || exit 1 -for a in $(ls db/ip/); do - for b in $(ls db/ip/${a}); do - for c in $(ls db/ip/${a}/${b}); do + +LS="ls --color=never" + +for a in $($LS db/ip/); do + for b in $($LS db/ip/${a}); do + for c in $($LS db/ip/${a}/${b}); do if [ -d db/ip/${a}/${b}/${c}/ns/ ]; then for ns in $(cat db/ip/${a}/${b}/${c}/ns/*); do A1=$(scripts/hex2dec ${a}) @@ -26,8 +29,8 @@ done echo -for tld in $(ls db/dom/); do - for domain in $(ls db/dom/${tld}/); do +for tld in $($LS db/dom/); do + for domain in $($LS db/dom/${tld}/); do for ns in $(cat db/dom/${tld}/${domain}/ns/*); do STR="server=/${domain}.${tld}/${ns}" echo $STR |