From c16edd755295b3910cad143b037e44e898408529 Mon Sep 17 00:00:00 2001 From: Neil Cook Date: Fri, 18 Oct 2024 13:44:17 +0100 Subject: [PATCH] Remove luarocks debug command --- tests/gh_actions/setup_lua.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/gh_actions/setup_lua.sh b/tests/gh_actions/setup_lua.sh index 2e2c25b..e04b960 100644 --- a/tests/gh_actions/setup_lua.sh +++ b/tests/gh_actions/setup_lua.sh @@ -17,7 +17,11 @@ LR_HOME_DIR=$GITHUB_WORKSPACE/install/luarocks rm -rf $HOME/.lua mkdir -p $HOME/.lua -LUAJIT="yes" +if [ "$LUA" == "luajit" ]; then + LUAJIT="yes" +else + LUAJIT="no" +fi if [ "$PLATFORM" == "macosx" ]; then export MACOSX_DEPLOYMENT_TARGET=`sw_vers --productVersion` @@ -85,10 +89,9 @@ ln -s $LR_HOME_DIR/bin/luarocks $HOME/.lua/luarocks cd $GITHUB_WORKSPACE luarocks --version -luarocks if [ "$LUAJIT" == "yes" ]; then - rm -rf $luajit; + rm -rf luajit; elif [ "$LUA" == "lua5.1" ]; then rm -rf lua-5.1.5; elif [ "$LUA" == "lua5.2" ]; then