diff options
-rw-r--r-- | src/luarocks/util.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/luarocks/util.lua b/src/luarocks/util.lua index 8eccace9..af63b79d 100644 --- a/src/luarocks/util.lua +++ b/src/luarocks/util.lua | |||
@@ -495,11 +495,11 @@ do | |||
495 | end | 495 | end |
496 | table.insert(names, "lua" .. exe_suffix) | 496 | table.insert(names, "lua" .. exe_suffix) |
497 | 497 | ||
498 | local bindirs = { prefix .. "/bin", prefix } | ||
499 | local tried = {} | 498 | local tried = {} |
500 | for _, d in ipairs(bindirs) do | 499 | local dir_sep = package.config:sub(1, 1) |
500 | for _, d in ipairs({ prefix .. dir_sep .. "bin", prefix }) do | ||
501 | for _, name in ipairs(names) do | 501 | for _, name in ipairs(names) do |
502 | local lua_exe = d .. "/" .. name | 502 | local lua_exe = d .. dir_sep .. name |
503 | local is_wrapper, err = util.lua_is_wrapper(lua_exe) | 503 | local is_wrapper, err = util.lua_is_wrapper(lua_exe) |
504 | if is_wrapper == false then | 504 | if is_wrapper == false then |
505 | local lv = util.check_lua_version(lua_exe, luaver) | 505 | local lv = util.check_lua_version(lua_exe, luaver) |