From cd679ed39829718db7376f10eea8a84ebaed258b Mon Sep 17 00:00:00 2001 From: "Vadim A. Misbakh-Soloviov" Date: Sun, 9 Jun 2019 22:43:06 +0300 Subject: [PATCH] travis: kicking lj --- .travis/setup_lua.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis/setup_lua.sh b/.travis/setup_lua.sh index 2e0e29c..efbb29d 100644 --- a/.travis/setup_lua.sh +++ b/.travis/setup_lua.sh @@ -25,7 +25,8 @@ LUAJIT="no" if [ "${LUA:0:6}" == "luajit" ]; then LUAJIT="yes" - LJ_BRANCH="${LUA##luajit}" + LJ_V="${LUA##luajit}" + [[ -z "${LJ_V}" ]] && LJ_V="2.0" fi mkdir -p "${LUA_HOME_DIR}" @@ -34,7 +35,7 @@ if [ "${LUAJIT}" == "yes" ]; then if [ "${LUA}" == "luajit" ]; then curl -LSs "https://github.com/LuaJIT/LuaJIT/archive/v${LUAJIT_VERSION}.tar.gz" | tar xz else - git clone https://github.com/LuaJIT/LuaJIT.git -b "${LJ_BRANCH}" "${LUAJIT_BASE}" + git clone https://github.com/LuaJIT/LuaJIT.git -b "v${LJ_V}" "${LUAJIT_BASE}" fi cd "${LUAJIT_BASE}"