diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/luarocks/cmd.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/luarocks/cmd.lua b/src/luarocks/cmd.lua index cb669226..bbbdcba1 100644 --- a/src/luarocks/cmd.lua +++ b/src/luarocks/cmd.lua | |||
| @@ -372,6 +372,8 @@ function cmd.run_command(description, commands, external_namespace, ...) | |||
| 372 | 372 | ||
| 373 | fs.init() | 373 | fs.init() |
| 374 | 374 | ||
| 375 | lua_version = cfg.lua_version | ||
| 376 | |||
| 375 | if not lua_found then | 377 | if not lua_found then |
| 376 | if cfg.variables.LUA_DIR then | 378 | if cfg.variables.LUA_DIR then |
| 377 | local found = util.find_lua(cfg.variables.LUA_DIR, cfg.lua_version) | 379 | local found = util.find_lua(cfg.variables.LUA_DIR, cfg.lua_version) |
