[tor-commits] [snowflake-webext/master] Filter out dotfiles
arlo at torproject.org
arlo at torproject.org
Fri Jan 15 20:31:48 UTC 2021
commit 5a89747fa226c99aef769cbabbbd70571d72f239
Author: Arlo Breault <arlolra at gmail.com>
Date: Thu Jan 14 14:52:37 2021 -0500
Filter out dotfiles
Fixes #18
---
make.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/make.js b/make.js
index 38408aa..81a5b9b 100755
--- a/make.js
+++ b/make.js
@@ -70,7 +70,7 @@ var getDisplayName = function(locale) {
var getDirs = function() {
let dirs = readdirSync('translation').filter((f) => {
const s = statSync(`translation/${f}`);
- return s.isDirectory();
+ return s.isDirectory() && !/^\./.test(f);
});
dirs.push('en_US');
dirs.sort();
More information about the tor-commits
mailing list