aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2020-01-14 21:47:25 -0300
committerHisham Muhammad <hisham@gobolinux.org>2020-01-14 22:48:08 -0300
commite58c4195c5a827cc9a53587364edfd04e9b316c4 (patch)
treeed205a07d191e688e03cfe5ed727c10e0cc8de82
parent21dd0cccae5c6d72a1b181c2988a82371ceadebd (diff)
downloadluarocks-e58c4195c5a827cc9a53587364edfd04e9b316c4.tar.gz
luarocks-e58c4195c5a827cc9a53587364edfd04e9b316c4.tar.bz2
luarocks-e58c4195c5a827cc9a53587364edfd04e9b316c4.zip
util: use native slashes
-rw-r--r--src/luarocks/util.lua6
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)