From 8bc71893611b12b62dd6dd5f0e992451336b072c Mon Sep 17 00:00:00 2001 From: Gustavo Ramires Date: Fri, 2 Apr 2021 13:27:31 -0300 Subject: configure: check home dir for default-lua-version https://github.com/luarocks/luarocks/issues/1293 Co-authored-by: Hisham Muhammad --- src/luarocks/cmd.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/luarocks/cmd.lua b/src/luarocks/cmd.lua index 7037c734..be749c16 100644 --- a/src/luarocks/cmd.lua +++ b/src/luarocks/cmd.lua @@ -231,8 +231,8 @@ do if project_dir then table.insert(dirs, dir.path(project_dir, ".luarocks")) end - if cfg.home_tree then - table.insert(dirs, dir.path(cfg.home_tree, ".luarocks")) + if cfg.homeconfdir then + table.insert(dirs, cfg.homeconfdir) end table.insert(dirs, cfg.sysconfdir) for _, d in ipairs(dirs) do -- cgit v1.2.3-55-g6feb