From 68cc00447c460da09a49f5ba6786aa84d893497e Mon Sep 17 00:00:00 2001 From: Moviuro Date: Sat, 6 Jun 2015 22:03:54 +0200 Subject: [PATCH] launch-dedicated.sh: Support passing args from CLI --- launch-dedicated.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/launch-dedicated.sh b/launch-dedicated.sh index c5dd5ab77b..110c19a5aa 100755 --- a/launch-dedicated.sh +++ b/launch-dedicated.sh @@ -1,12 +1,12 @@ #!/bin/sh # example launch script, see https://github.com/OpenRA/OpenRA/wiki/Dedicated for details -Name="Dedicated Server" -Mod="ra" +Name="${Name:-"Dedicated Server"}" +Mod="${Mod:-"ra"}" Dedicated="True" DedicatedLoop="True" -ListenPort=1234 -ExternalPort=1234 -AdvertiseOnline="False" +ListenPort="${ListenPort:-"1234"}" +ExternalPort="${ExternalPort:-"1234"}" +AdvertiseOnline="${AdvertiseOnline:-"False"}" while true; do mono --debug OpenRA.Game.exe Game.Mod=$Mod Server.Dedicated=$Dedicated Server.DedicatedLoop=$DedicatedLoop \