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 fi
} }
trap "exit 0" SIGINT
# Check for updates # Check for updates
update update
# If display isn't set assume we are launching from console and an X environment is running using display :0 # 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 esac
done done
# Install game based on the selection above. [[ ${#game} -lt 1 ]] && exit 0
# make sure wine is actually set to something
export wine="${wine:-/usr/bin/wine}"
[[ "$agmNoLaunch" != "true" ]] && winetricks sandbox [[ "$agmNoLaunch" != "true" ]] && winetricks sandbox
[[ "$agmNoLaunch" != "true" ]] && exit 0 [[ "$agmNoLaunch" != "true" ]] && exit 0