summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/fs/tools.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/fs/tools.lua b/src/luarocks/fs/tools.lua
index 16dc9cf2..991c25cb 100644
--- a/src/luarocks/fs/tools.lua
+++ b/src/luarocks/fs/tools.lua
@@ -144,7 +144,7 @@ function tools.get_md5(file)
144 local cmd = md5_cmd[cfg.md5checker] 144 local cmd = md5_cmd[cfg.md5checker]
145 if not cmd then return nil, "no MD5 checker command configured" end 145 if not cmd then return nil, "no MD5 checker command configured" end
146 local pipe = io.popen(cmd.." "..fs.Q(fs.absolute_name(file))) 146 local pipe = io.popen(cmd.." "..fs.Q(fs.absolute_name(file)))
147 local computed = pipe:read("*a") 147 local computed = pipe:read("*l")
148 pipe:close() 148 pipe:close()
149 if computed then 149 if computed then
150 computed = computed:match("("..("%x"):rep(32)..")") 150 computed = computed:match("("..("%x"):rep(32)..")")