aboutsummaryrefslogtreecommitdiff
path: root/files.moon
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-07-26 14:29:23 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-07-26 14:29:41 -0700
commitf434b6b167477971f1df54ffc71b031e13705a75 (patch)
treecf9f06f899cf62013a339fd6b63140a40f6590bf /files.moon
parented996ad1b690c45ffb33dacb9eccd45e7364dce5 (diff)
Fix for -e strings not getting executed because Files.walk didn't
respect spoofing.
Diffstat (limited to 'files.moon')
-rw-r--r--files.moon2
1 files changed, 1 insertions, 1 deletions
diff --git a/files.moon b/files.moon
index 04bebdb..dc3a8bd 100644
--- a/files.moon
+++ b/files.moon
@@ -103,7 +103,7 @@ Files.walk = (path, flush_cache=false)->
export _BROWSE_CACHE
_BROWSE_CACHE = {}
local files
- if path == 'stdin'
+ if path == 'stdin' or _SPOOFED_FILES[path]
files = {path}
else
for nomsupath in package.nomsupath\gmatch("[^;]+")