Skip to content

Commit 8bc7189

Browse files
configure: check home dir for default-lua-version
luarocks#1293 Co-authored-by: Hisham Muhammad <hisham@gobolinux.org>
1 parent b4f8ddf commit 8bc7189

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/luarocks/cmd.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ do
231231
if project_dir then
232232
table.insert(dirs, dir.path(project_dir, ".luarocks"))
233233
end
234-
if cfg.home_tree then
235-
table.insert(dirs, dir.path(cfg.home_tree, ".luarocks"))
234+
if cfg.homeconfdir then
235+
table.insert(dirs, cfg.homeconfdir)
236236
end
237237
table.insert(dirs, cfg.sysconfdir)
238238
for _, d in ipairs(dirs) do

0 commit comments

Comments
 (0)