diff options
author | Hisham <hisham@gobolinux.org> | 2016-10-15 10:16:56 -0700 |
---|---|---|
committer | Hisham <hisham@gobolinux.org> | 2016-10-15 10:16:56 -0700 |
commit | bcd4344e557476e00e10796f6f82927904c23c88 (patch) | |
tree | 51df0526ff3449c4b54aed659988d03f7ef7fb72 /configure | |
parent | 1c4779c2f13b1bbc74cfdbb906f6a4225867f74b (diff) | |
parent | 90a39598f98bb203b3ddeed1c637fe4239046525 (diff) | |
download | luarocks-bcd4344e557476e00e10796f6f82927904c23c88.tar.gz luarocks-bcd4344e557476e00e10796f6f82927904c23c88.tar.bz2 luarocks-bcd4344e557476e00e10796f6f82927904c23c88.zip |
Merge branch 'master' of https://github.com/keplerproject/luarocks
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -226,8 +226,8 @@ then | |||
226 | fi | 226 | fi |
227 | 227 | ||
228 | detect_lua_version() { | 228 | detect_lua_version() { |
229 | detected_lua=`$1 -e 'print(_VERSION:sub(5))' 2> /dev/null` | 229 | detected_lua=`$1 -e 'print(_VERSION:match(" (5%.[123])$"))' 2> /dev/null` |
230 | if [ "$detected_lua" = "5.1" -o "$detected_lua" = "5.2" -o "$detected_lua" = "5.3" ] | 230 | if [ "$detected_lua" != "nil" ] |
231 | then | 231 | then |
232 | echo "Lua version detected: $detected_lua" | 232 | echo "Lua version detected: $detected_lua" |
233 | if [ "$LUA_VERSION_SET" != "yes" ] | 233 | if [ "$LUA_VERSION_SET" != "yes" ] |