From d534a32241aab49c18bae1b21f40f856baa22ab0 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Fri, 26 Apr 2019 11:41:10 -0300 Subject: Fix build of binaries --- src/luarocks/core/cfg.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/luarocks/core/cfg.lua b/src/luarocks/core/cfg.lua index fd74ff98..02fb564b 100644 --- a/src/luarocks/core/cfg.lua +++ b/src/luarocks/core/cfg.lua @@ -560,7 +560,7 @@ function cfg.init(detected, warning) local lua_bindir = detected.lua_bindir or hardcoded.LUA_BINDIR or (arg and arg[-1] and arg[-1]:gsub("[\\/][^\\/]+$", "")) local lua_incdir = detected.lua_incdir or hardcoded.LUA_INCDIR local lua_libdir = detected.lua_libdir or hardcoded.LUA_LIBDIR - local lua_dir = detected.lua_dir or hardcoded.LUA_DIR + local lua_dir = detected.lua_dir or hardcoded.LUA_DIR or (lua_bindir and lua_bindir:gsub("[\\/]bin$", "")) local init = cfg.init -- cgit v1.2.3-55-g6feb