aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2019-09-02 16:49:56 -0300
committerHisham Muhammad <hisham@gobolinux.org>2019-09-04 14:28:46 -0300
commitc300bbf52e9a97248ba57ab8e10b0a5c38c369d4 (patch)
tree15a523897f4e2eb3db0032d14bdfb11f4158e96f
parent929d335e2bfad0083f161007d40fbc34738c1f8a (diff)
downloadluarocks-c300bbf52e9a97248ba57ab8e10b0a5c38c369d4.tar.gz
luarocks-c300bbf52e9a97248ba57ab8e10b0a5c38c369d4.tar.bz2
luarocks-c300bbf52e9a97248ba57ab8e10b0a5c38c369d4.zip
Fix version detection
-rw-r--r--src/luarocks/util.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/luarocks/util.lua b/src/luarocks/util.lua
index d4461c92..13ddf895 100644
--- a/src/luarocks/util.lua
+++ b/src/luarocks/util.lua
@@ -436,6 +436,9 @@ do
436 return nil 436 return nil
437 end 437 end
438 local lv, err = util.popen_read(Q(lua_exe) .. ' -e "io.write(_VERSION:sub(5))"') 438 local lv, err = util.popen_read(Q(lua_exe) .. ' -e "io.write(_VERSION:sub(5))"')
439 if lv == "" then
440 return nil
441 end
439 if luaver and luaver ~= lv then 442 if luaver and luaver ~= lv then
440 return nil 443 return nil
441 end 444 end