aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Orekhov <roman-orekhov@users.noreply.github.com>2024-02-17 00:24:06 -0300
committerHisham Muhammad <hisham@gobolinux.org>2024-02-17 11:16:40 -0300
commit15f4f69f1536b8e7789191c4293d668a7fdccfcc (patch)
treeedfb24d3d5001c4ef37383370e59cdd484df87f2
parent1f4a567867633d87ff1d5d102ffc890339b9adb0 (diff)
downloadluarocks-15f4f69f1536b8e7789191c4293d668a7fdccfcc.tar.gz
luarocks-15f4f69f1536b8e7789191c4293d668a7fdccfcc.tar.bz2
luarocks-15f4f69f1536b8e7789191c4293d668a7fdccfcc.zip
fix(config): update system config by default with local_by_default = false
Fixes #1512.
-rw-r--r--src/luarocks/cmd/config.lua2
1 files changed, 1 insertions, 1 deletions
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)
233 or (args["local"] and "user") 233 or (args["local"] and "user")
234 or (args.project_tree and "project") 234 or (args.project_tree and "project")
235 or (cfg.local_by_default and "user") 235 or (cfg.local_by_default and "user")
236 or (fs.is_writable(cfg.config_files["system"].file and "system")) 236 or (fs.is_writable(cfg.config_files["system"].file) and "system")
237 or "user" 237 or "user"
238end 238end
239 239