mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-08-20 21:44:06 +02:00
tests.sh: fix eval luarocks path on Windows
Annoyingly luarocks generates batch commands on Windows, even when being called from Git Bash :-/
This commit is contained in:
parent
64ff61a4d2
commit
cb75776164
10
tests.sh
10
tests.sh
@ -31,7 +31,15 @@ check_command luarocks;
|
|||||||
luarocks_root="${PWD}/.luarocks";
|
luarocks_root="${PWD}/.luarocks";
|
||||||
|
|
||||||
# Setup the lua module path
|
# Setup the lua module path
|
||||||
eval "$(luarocks --tree "${luarocks_root}" path)";
|
# eval "$(luarocks --tree "${luarocks_root}" path)";
|
||||||
|
|
||||||
|
PATH="$(luarocks --tree "${luarocks_root}" path --lr-bin):${PATH}";
|
||||||
|
echo "PATH | ${PATH}";
|
||||||
|
LUA_PATH="$(luarocks --tree "${luarocks_root}" path --lr-path);init.lua;./?.lua";
|
||||||
|
LUA_CPATH="$(luarocks --tree "${luarocks_root}" path --lr-cpath);./?.so";
|
||||||
|
|
||||||
|
|
||||||
|
export PATH LUA_PATH LUA_CPATH;
|
||||||
|
|
||||||
mode="${1}"; if [[ "$#" -gt 0 ]]; then shift; fi
|
mode="${1}"; if [[ "$#" -gt 0 ]]; then shift; fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user