diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-01-10 16:33:37 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-01-10 16:35:08 -0800 |
| commit | 0f0fb2256a46a8808794d7d4746d112278da3730 (patch) | |
| tree | 7cfb6b255beeb49705044876913e0332376b66d9 /files.moon | |
| parent | db552f56dc1f2c6ea19a7d39d38ac66e52ed156e (diff) | |
Major overhaul of how modules and environments work, along with some
steamlining and tweaks to the makefile. Version bump: 6.14.13.8
Diffstat (limited to 'files.moon')
| -rw-r--r-- | files.moon | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4,7 +4,7 @@ re = require 're' Files = {} run_cmd = (cmd)-> - f = io.popen(cmd) + f = io.popen(cmd..' 2>/dev/null') lines = [line for line in f\lines!] return nil unless f\close! return lines @@ -57,7 +57,7 @@ Files.list = (path)-> local files _BROWSE_CACHE[path] = if _SPOOFED_FILES[path] or path == 'stdin' or path == '-' {path} - else run_cmd('find -L "'..path..'" -not -path "*/\\.*" -type f 2>/dev/null') or false + else run_cmd('find -L "'..path..'" -not -path "*/\\.*" -type f') or false return _BROWSE_CACHE[path] ok, lfs = pcall(require, "lfs") @@ -93,7 +93,7 @@ if ok if f\match("^%./") then _BROWSE_CACHE[path][i] = f\sub(3) return _BROWSE_CACHE[path] else - unless run_cmd('find . -maxdepth 0 2>/dev/null') + unless run_cmd('find . -maxdepth 0') url = if jit 'https://github.com/spacewander/luafilesystem' else 'https://github.com/keplerproject/luafilesystem' |
