mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2025-04-09 10:11:29 +02:00
Merge branch 'main' into VorTechnix
This commit is contained in:
13
tests.sh
13
tests.sh
@ -31,12 +31,13 @@ check_command luarocks;
|
||||
luarocks_root="${PWD}/.luarocks";
|
||||
|
||||
# Setup the lua module path
|
||||
# eval "$(luarocks --tree "${luarocks_root}" path)";
|
||||
|
||||
PATH="$(luarocks --tree "${luarocks_root}" path --lr-bin):${PATH}";
|
||||
LUA_PATH="$(luarocks --tree "${luarocks_root}" path --lr-path);init.lua;./?.lua;${LUA_PATH}";
|
||||
LUA_CPATH="$(luarocks --tree "${luarocks_root}" path --lr-cpath);./?.so;${LUA_CPATH}";
|
||||
|
||||
if [[ "${OSTYPE}" == *"msys"* ]]; then
|
||||
PATH="$(luarocks --tree "${luarocks_root}" path --lr-bin):${PATH}";
|
||||
LUA_PATH="$(luarocks --tree "${luarocks_root}" path --lr-path);init.lua;./?.lua;${LUA_PATH}";
|
||||
LUA_CPATH="$(luarocks --tree "${luarocks_root}" path --lr-cpath);./?.so;${LUA_CPATH}";
|
||||
else
|
||||
eval "$(luarocks --tree "${luarocks_root}" path)";
|
||||
fi
|
||||
|
||||
export PATH LUA_PATH LUA_CPATH;
|
||||
|
||||
|
Reference in New Issue
Block a user