minecraft-pi-reborn/debian/client/virgl/usr/lib/minecraft-pi/run.sh
2020-11-22 17:30:06 -05:00

16 lines
208 B
Bash
Executable File

#!/bin/sh
set -e
# Start VirGL
virgl_test_server & &> /tmp/virgl.log
VIRGL_PID="$!"
# Launch Minecraft
${DOCKER_COMPOSE} run --rm minecraft-pi || :
RET="$?"
# Kill VirGL
kill "${VIRGL_PID}"
exit "${RET}"