From 15f4f69f1536b8e7789191c4293d668a7fdccfcc Mon Sep 17 00:00:00 2001 From: Roman Orekhov Date: Sat, 17 Feb 2024 00:24:06 -0300 Subject: fix(config): update system config by default with local_by_default = false Fixes #1512. --- src/luarocks/cmd/config.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/luarocks/cmd/config.lua b/src/luarocks/cmd/config.lua index 0227b18d..d9b679df 100644 --- a/src/luarocks/cmd/config.lua +++ b/src/luarocks/cmd/config.lua @@ -233,7 +233,7 @@ local function get_scope(args) or (args["local"] and "user") or (args.project_tree and "project") or (cfg.local_by_default and "user") - or (fs.is_writable(cfg.config_files["system"].file and "system")) + or (fs.is_writable(cfg.config_files["system"].file) and "system") or "user" end -- cgit v1.2.3-55-g6feb