Scripts: Set errexit to catch errors
This commit is contained in:
committed by
Matthias Mailänder
parent
7cd0d8c079
commit
946cd8f322
@@ -6,6 +6,8 @@
|
||||
# $ Mod="d2k" ./launch-dedicated.sh # Launch a dedicated server with default settings but override the Mod
|
||||
# Read the file to see which settings you can override
|
||||
|
||||
set -o errexit || exit $?
|
||||
|
||||
ENGINEDIR=$(dirname "$0")
|
||||
if command -v mono >/dev/null 2>&1 && [ "$(grep -c .NETCoreApp,Version= "${ENGINEDIR}/bin/OpenRA.Server.dll")" = "0" ]; then
|
||||
RUNTIME_LAUNCHER="mono --debug"
|
||||
@@ -50,5 +52,5 @@ while true; do
|
||||
Server.EnableLintChecks="$EnableLintChecks" \
|
||||
Server.ShareAnonymizedIPs="$ShareAnonymizedIPs" \
|
||||
Server.JoinChatDelay="$JoinChatDelay" \
|
||||
Engine.SupportDir="$SupportDir"
|
||||
Engine.SupportDir="$SupportDir" || :
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user