aboutsummaryrefslogtreecommitdiff
path: root/files.lua
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-07-24 17:17:03 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-07-24 17:17:16 -0700
commitbf224aacf2be9fc316fc08fdfc17a5bab0530767 (patch)
tree4a4056853f6c7c68cf6e95eaa4aab57df9cac498 /files.lua
parentb1c0446a3c65e8e22a9ecfd9d24213a2b9eac22b (diff)
Updated luafilesystem urls to point to both JIT and non-JIT versions.
Diffstat (limited to 'files.lua')
-rw-r--r--files.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/files.lua b/files.lua
index 0de29ed..cda361d 100644
--- a/files.lua
+++ b/files.lua
@@ -157,7 +157,13 @@ if ok then
end
else
if not (run_cmd('find . -maxdepth 0')) then
- error("Could not find 'luafilesystem' module and couldn't run system command `find` (this might happen on Windows). Please install `luafilesystem` (which can be found at: http://keplerproject.github.io/luafilesystem/ or `luarocks install luafilesystem`)", 0)
+ local url
+ if jit then
+ url = 'https://github.com/spacewander/luafilesystem'
+ else
+ url = 'https://github.com/keplerproject/luafilesystem'
+ end
+ error("Could not find 'luafilesystem' module and couldn't run system command `find` (this might happen on Windows). Please install `luafilesystem` (which can be found at: " .. tostring(url) .. " or `luarocks install luafilesystem`)", 0)
end
end
Files.walk = function(path, flush_cache)