diff options
author | Dian Fay | 2016-10-17 21:07:14 -0400 |
---|---|---|
committer | Dian Fay | 2016-10-17 21:07:14 -0400 |
commit | fde739df32c2e190dc7deebf7c793bdd75778e4d (patch) | |
tree | d636ed661719d8a7daa433bceeb7a1f4c84677eb /dom4-server | |
parent | abf27b0c25c88260081c0cd45897f785e298108d (diff) | |
download | aur-fde739df32c2e190dc7deebf7c793bdd75778e4d.tar.gz |
include steamcmd install and simplify a bunch of stuff
Diffstat (limited to 'dom4-server')
-rwxr-xr-x | dom4-server | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dom4-server b/dom4-server index e8537794cc11..b239c0e1ad04 100755 --- a/dom4-server +++ b/dom4-server @@ -1,12 +1,12 @@ #!/bin/bash -game=`cat /usr/share/dom4/current` - -if [[ -z "$game" ]]; then - echo "No game specified. Use 'dom4 config' to load a game configuration." +if [[ ! -s /usr/share/dom4/current ]]; then + echo "No game configured. Use 'dom4 config' to set up a game." exit 1 fi +game=$(</usr/share/dom4/current) + if [[ ! -s /usr/share/dom4/config/$game.properties ]]; then echo "Tried to load $game but configuration file is missing." exit 1 @@ -28,4 +28,4 @@ done < /usr/share/dom4/config/$game.properties export DOM4_CONF=/usr/share/dom4 -exec sh /opt/Dominions4/dom4.sh $config $game +exec sh /opt/dom4/dom4.sh $config $game |