From 587e1ef385820565291be9c91fb02bf399bd8313 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 15 Dec 2024 21:41:03 -0500 Subject: [PATCH] Fixed a bug that would run sandbox on non existent wine if control+c was pressed. --- audiogame-manager.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 1c9d766..6d13658 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -1146,6 +1146,7 @@ add_launcher() { fi } +trap "exit 0" SIGINT # Check for updates update # If display isn't set assume we are launching from console and an X environment is running using display :0 @@ -1272,9 +1273,8 @@ while getopts "${args}" i ; do esac done -# Install game based on the selection above. -# make sure wine is actually set to something -export wine="${wine:-/usr/bin/wine}" +[[ ${#game} -lt 1 ]] && exit 0 + [[ "$agmNoLaunch" != "true" ]] && winetricks sandbox [[ "$agmNoLaunch" != "true" ]] && exit 0