aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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