From c82fc4e686373e54245f214ce1c244ea54785874 Mon Sep 17 00:00:00 2001 From: Oleg Oshmyan Date: Mon, 30 Oct 2023 16:31:34 +0200 Subject: [PATCH] run_bepinex*.sh: use exec when relaunching self --- Runtimes/Unity/Doorstop/run_bepinex_il2cpp.sh | 3 +-- Runtimes/Unity/Doorstop/run_bepinex_mono.sh | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Runtimes/Unity/Doorstop/run_bepinex_il2cpp.sh b/Runtimes/Unity/Doorstop/run_bepinex_il2cpp.sh index db8a66b..037e7a9 100644 --- a/Runtimes/Unity/Doorstop/run_bepinex_il2cpp.sh +++ b/Runtimes/Unity/Doorstop/run_bepinex_il2cpp.sh @@ -67,8 +67,7 @@ corlib_dir="dotnet" if [ "$2" = "SteamLaunch" ]; then steam="$1 $2 $3 $4 $5 $6 $0 $7" shift 7 - $steam "$@" - exit + exec $steam "$@" fi # Handle first param being executable name diff --git a/Runtimes/Unity/Doorstop/run_bepinex_mono.sh b/Runtimes/Unity/Doorstop/run_bepinex_mono.sh index 7a1846a..c28e599 100644 --- a/Runtimes/Unity/Doorstop/run_bepinex_mono.sh +++ b/Runtimes/Unity/Doorstop/run_bepinex_mono.sh @@ -67,8 +67,7 @@ corlib_dir="" if [ "$2" = "SteamLaunch" ]; then steam="$1 $2 $3 $4 $5 $6 $0 $7" shift 7 - $steam "$@" - exit + exec $steam "$@" fi # Handle first param being executable name