diff --git a/apxtri/apxtri.js b/apxtri/apxtri.js index ed43b74..c64bd23 100755 --- a/apxtri/apxtri.js +++ b/apxtri/apxtri.js @@ -34,7 +34,7 @@ apxtri.main = async () => { `../adminapi/objects/tribes/idx/tribes_dns.json` ); //check if new tribe was add - glob.sync("../*").forEach(async (t) => { + glob.sync("../*").filter(f => fs.lstatSync(f).isDirectory()).forEach(async (t) => { const tribe = path.basename(t); console.log(tribe); if (!tribesdns[tribe]) {