Fixed a bug that would run sandbox on non existent wine if control+c was pressed.

This commit is contained in:
Storm Dragon 2024-12-15 21:41:03 -05:00
parent b8eb927c2d
commit 587e1ef385

View File

@ -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