mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-03-13 17:42:29 +01:00
Detect lua version
This commit is contained in:
@ -1,9 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
LUACHECK=$HOME/.luarocks/bin/luacheck
|
||||
|
||||
LUA=$( which lua || which lua5.1 || which lua5.2 || which lua5.3 || which luajit )
|
||||
if [[ -z "$LUA" ]]; then
|
||||
echo "Unable to find lua interpreter"
|
||||
exit 1
|
||||
fi
|
||||
(
|
||||
find ./ -name mod.conf
|
||||
echo EOF
|
||||
) | lua5.3 tests/luacheck/test.lua | sh
|
||||
) | $LUA tests/luacheck/test.lua | sh
|
||||
|
||||
|
Reference in New Issue
Block a user