aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/cmd/config.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/luarocks/cmd/config.lua b/src/luarocks/cmd/config.lua
index 0e7a3e3d..a01d33a9 100644
--- a/src/luarocks/cmd/config.lua
+++ b/src/luarocks/cmd/config.lua
@@ -219,7 +219,11 @@ local function write_entries(keys, scope, do_unset)
219 if do_unset then 219 if do_unset then
220 print(("\t%s"):format(var)) 220 print(("\t%s"):format(var))
221 else 221 else
222 print(("\t%s = %q"):format(var, val)) 222 if type(val) == "string" then
223 print(("\t%s = %q"):format(var, val))
224 else
225 print(("\t%s = %s"):format(var, tostring(val)))
226 end
223 end 227 end
224 end 228 end
225 print(do_unset and "from" or "to") 229 print(do_unset and "from" or "to")