minenews/scripts/test.sh
rainer 5c61b1aa93
Some checks failed
luacheck / build (push) Has been cancelled
first commit
2025-08-22 02:35:24 +02:00

17 lines
No EOL
395 B
Bash

#!/bin/bash
set -e
set -o pipefail
export WORLD=$HOME/.minetest/worlds/minenews-dev
export LOGS=$(mktemp "$WORLD/debug.txt")
rm -rvf $WORLD
mkdir -p $WORLD/worldmods
cp -r scripts/world/* $WORLD/
cp -r ./ $WORLD/worldmods/minenews
if [ x"$1" = x"pt" ]; then
echo -e '\nlanguage = pt_BR' >> $WORLD/minetest.conf
fi
exec minetest --verbose --config $WORLD/minetest.conf --world $WORLD --go