diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-26 14:29:23 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-26 14:29:41 -0700 |
| commit | f434b6b167477971f1df54ffc71b031e13705a75 (patch) | |
| tree | cf9f06f899cf62013a339fd6b63140a40f6590bf | |
| parent | ed996ad1b690c45ffb33dacb9eccd45e7364dce5 (diff) | |
Fix for -e strings not getting executed because Files.walk didn't
respect spoofing.
| -rw-r--r-- | files.lua | 2 | ||||
| -rw-r--r-- | files.moon | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -177,7 +177,7 @@ Files.walk = function(path, flush_cache) _BROWSE_CACHE = { } end local files - if path == 'stdin' then + if path == 'stdin' or _SPOOFED_FILES[path] then files = { path } @@ -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("[^;]+") |
