From 9fe6923d37a9e3b35428cfa631da60fdd6a89f95 Mon Sep 17 00:00:00 2001 From: Geoff Leyland Date: Tue, 22 Dec 2015 14:47:50 +1300 Subject: Fix util.popen_read --- src/luarocks/util.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/luarocks/util.lua b/src/luarocks/util.lua index 8c4bd974..fc45c9f4 100644 --- a/src/luarocks/util.lua +++ b/src/luarocks/util.lua @@ -16,8 +16,8 @@ local unpack = unpack or table.unpack -- @param spec string: "*l" by default, to read a single line. -- May be used to read more, passing, for instance, "*a". -- @return string: the output of the program. -function popen_read(cmd, spec) - local fd = io.open(cmd) +function util.popen_read(cmd, spec) + local fd = io.popen(cmd) local out = fd:read(spec or "*l") fd:close() return out -- cgit v1.2.3-55-g6feb