Skip to content

Commit

Permalink
cleanups / cwd fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Apr 24, 2024
1 parent 9807eb1 commit 5883805
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ then
git clone --depth=1 https://github.com/BuckarooBanzay/mtt
fi

cd ${WORLDPATH}/
if [ "${INPUT_TEST_MODE}" == "mod" ]
then
# repository is a mod
Expand All @@ -31,7 +32,6 @@ then
fi

# install game
cd ${WORLDPATH}/
echo "Cloning ${INPUT_GIT_GAME_REPO} into game directory"
git clone --recurse-submodules --depth=1 ${INPUT_GIT_GAME_REPO} game

Expand All @@ -55,21 +55,13 @@ echo "list of mods to test: ${mtt_filter}"
cat <<EOF > /minetest.conf
mg_name = ${INPUT_MAPGEN}
mtt_filter = ${mtt_filter}
mtt_enable_coverage = ${INPUT_ENABLE_COVERAGE}
mtt_enable_benchmarks = ${INPUT_ENABLE_BENCHMARKS}
mtt_enable = true
secure.trusted_mods = mtt
EOF
echo "${INPUT_ADDITIONAL_CONFIG}" >> /minetest.conf

if [ "${INPUT_ENABLE_COVERAGE}" == "true" ]
then
echo "mtt_enable_coverage = true" >> /minetest.conf
fi

if [ "${INPUT_ENABLE_BENCHMARKS}" == "true" ]
then
echo "mtt_enable_benchmarks = true" >> /minetest.conf
fi

# simple world.mt
cat <<EOF > ${WORLDPATH}/world.mt
enable_damage = false
Expand Down

0 comments on commit 5883805

Please sign in to comment.