Fixed a bug that would run sandbox on non existent wine if control+c was pressed.
This commit is contained in:
parent
b8eb927c2d
commit
587e1ef385
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user