Fix shell script syntax errors

Fixes #6956
This commit is contained in:
Oliver Brakmann
2014-11-15 10:43:29 +01:00
parent 5bf3d9879c
commit 1db0d55aa4
3 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/sh
# launch script (executed by Desura)
mono OpenRA.Game.exe Server.Dedicated=False Server.DedicatedLoop=False "$@"
if [ $? != 0 && $? != 1 ]
if [ $? != 0 -a $? != 1 ]
then
ZENITY=`which zenity` || echo "OpenRA needs zenity installed to display a graphical error dialog. See ~/.openra. for log files."
$ZENITY --question --title "OpenRA" --text "OpenRA has encountered a fatal error.\nLog Files are available in ~/.openra." --ok-label "Quit" --cancel-label "View FAQ" || xdg-open https://github.com/OpenRA/OpenRA/wiki/FAQ