From 95addffda674d974f8213ad6c865a8f1f6979ad0 Mon Sep 17 00:00:00 2001 From: "Paul D. Fernhout" Date: Sat, 20 May 2017 17:09:32 +0000 Subject: [PATCH] Update ospec to ignore hidden directories and files --- ospec/bin/ospec | 1 + 1 file changed, 1 insertion(+) diff --git a/ospec/bin/ospec b/ospec/bin/ospec index 11777a09..00ab7fab 100644 --- a/ospec/bin/ospec +++ b/ospec/bin/ospec @@ -17,6 +17,7 @@ function traverseDirectory(pathname, callback) { var promises = [] for (var i = 0; i < pathnames.length; i++) { if (pathnames[i] === "node_modules") continue + if (pathnames[i][0] === ".") continue pathnames[i] = path.join(pathname, pathnames[i]) promises.push(traverseDirectory(pathnames[i], callback)) }