diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/luarocks/cmd/config.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/luarocks/cmd/config.lua b/src/luarocks/cmd/config.lua index 6d3543b5..bdabe960 100644 --- a/src/luarocks/cmd/config.lua +++ b/src/luarocks/cmd/config.lua | |||
| @@ -233,7 +233,8 @@ 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 "system" | 236 | or (fs.is_writable(cfg.config_files["system"].file and "system")) |
| 237 | or "user" | ||
| 237 | end | 238 | end |
| 238 | 239 | ||
| 239 | --- Driver function for "config" command. | 240 | --- Driver function for "config" command. |
