[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [snowflake-webext/master] Filter out dotfiles
commit 5a89747fa226c99aef769cbabbbd70571d72f239
Author: Arlo Breault <arlolra@xxxxxxxxx>
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();
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits