diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2019-11-12 19:07:24 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2019-11-29 18:36:42 -0300 |
commit | 51a2c592405c6c9fc006014973229ce1ac011d21 (patch) | |
tree | 33c53d2352f88fe8896bcfbb6a183df1c2f2566b /src | |
parent | c00be6f54916528883fdf79b1ff99263b7a93fb5 (diff) | |
download | luarocks-51a2c592405c6c9fc006014973229ce1ac011d21.tar.gz luarocks-51a2c592405c6c9fc006014973229ce1ac011d21.tar.bz2 luarocks-51a2c592405c6c9fc006014973229ce1ac011d21.zip |
config: fix --unset
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/cmd/config.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/cmd/config.lua b/src/luarocks/cmd/config.lua index 59dafdb5..6d3543b5 100644 --- a/src/luarocks/cmd/config.lua +++ b/src/luarocks/cmd/config.lua | |||
@@ -302,7 +302,7 @@ function config_cmd.command(args) | |||
302 | if args.key then | 302 | if args.key then |
303 | if args.value or args.unset then | 303 | if args.value or args.unset then |
304 | local scope = get_scope(args) | 304 | local scope = get_scope(args) |
305 | return write_entries({ [args.key] = args.value }, scope, args.unset) | 305 | return write_entries({ [args.key] = args.value or args.unset }, scope, args.unset) |
306 | else | 306 | else |
307 | return print_entry(args.key, cfg, args.json) | 307 | return print_entry(args.key, cfg, args.json) |
308 | end | 308 | end |