From 97e7655b12a5ebf5fe52c8bceefd951db5c58381 Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Sun, 28 Feb 2021 15:35:04 -0500 Subject: [PATCH] Nicer Exit --- debian/client/common/usr/lib/minecraft-pi/pre-launch.sh | 2 +- debian/client/native/usr/lib/minecraft-pi/run.sh | 2 +- debian/client/virgl/usr/lib/minecraft-pi/run.sh | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/debian/client/common/usr/lib/minecraft-pi/pre-launch.sh b/debian/client/common/usr/lib/minecraft-pi/pre-launch.sh index 5c8f87784..a660ef832 100755 --- a/debian/client/common/usr/lib/minecraft-pi/pre-launch.sh +++ b/debian/client/common/usr/lib/minecraft-pi/pre-launch.sh @@ -21,7 +21,7 @@ RET=$? set -e # Kill Logging -kill ${TAIL_PID} +kill ${TAIL_PID} > /dev/null 2>&1 || : # Exit exit ${RET} \ No newline at end of file diff --git a/debian/client/native/usr/lib/minecraft-pi/run.sh b/debian/client/native/usr/lib/minecraft-pi/run.sh index 39dee336b..b55bfb8b5 100755 --- a/debian/client/native/usr/lib/minecraft-pi/run.sh +++ b/debian/client/native/usr/lib/minecraft-pi/run.sh @@ -3,4 +3,4 @@ set -e # Launch Minecraft -docker-compose -f "${DOCKER_COMPOSE_YML}" run --rm minecraft-pi \ No newline at end of file +exec docker-compose -f "${DOCKER_COMPOSE_YML}" run --rm minecraft-pi \ No newline at end of file diff --git a/debian/client/virgl/usr/lib/minecraft-pi/run.sh b/debian/client/virgl/usr/lib/minecraft-pi/run.sh index 685a824d2..30b43b61e 100755 --- a/debian/client/virgl/usr/lib/minecraft-pi/run.sh +++ b/debian/client/virgl/usr/lib/minecraft-pi/run.sh @@ -13,6 +13,7 @@ RET=$? set -e # Kill VirGL -kill ${VIRGL_PID} > /dev/null 2>&1 +kill ${VIRGL_PID} > /dev/null 2>&1 || : +# Exit exit ${RET} \ No newline at end of file