Skip to content

Commit

Permalink
cfg: do not reconfigure if successfully initialized
Browse files Browse the repository at this point in the history
The success include that cfg.variables.LUA should be found.
  • Loading branch information
oleg-jukovec committed Nov 10, 2024
1 parent d537eb0 commit 917c10d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/luarocks/core/cfg.lua
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ function cfg.init(detected, warning)
return table.concat(platform_keys, ", ")
end

cfg.initialized = true
cfg.initialized = exit_ok and cfg.variables.LUA ~= nil
return exit_ok, exit_err, exit_what
end

Expand Down

0 comments on commit 917c10d

Please sign in to comment.