From c1a8f42a2340b4e9622ad4de460b4f8832511b82 Mon Sep 17 00:00:00 2001 From: Marcus Date: Sun, 11 Sep 2022 05:15:01 +0200 Subject: [PATCH] typo --- install-xash3d.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/install-xash3d.sh b/install-xash3d.sh index 0a5edb4..c1128db 100644 --- a/install-xash3d.sh +++ b/install-xash3d.sh @@ -8,7 +8,11 @@ hlds_url="https://github.com/DevilBoy-eXe/hlds/releases/download/$hlds_build/hld metamod_url="https://github.com/mittorn/metamod-p/releases/download/1/metamod.so" amxmod_url="http://www.amxmodx.org/release/amxmodx-$amxmod_version-base-linux.tar.gz" jk_botti_url="http://koti.kapsi.fi/jukivili/web/jk_botti/jk_botti-$jk_botti_version-release.tar.xz" -XASHDS_PORT=27015 + +if [ -z $XASHDS_PORT ] +then + XASHDS_PORT=27015 +fi showhelp() { echo "Usage: ./$0 [server|client] [install|update] [0.19|0.20]" @@ -220,10 +224,10 @@ then echo "= Creating start.sh script for dedicated server in build/result =" case $XASH_INSTALL_VERSION in 0.19) - echo "./xash +ip 0.0.0.0 +port $XASHDS_PORT -pingboost 1 -timeout 3 +map boot_camp +exec server.cfg" > $XASH3D_BASEDIR/result/start.sh + echo -e "#!/bin/bash\n./xash +ip 0.0.0.0 +port $XASHDS_PORT -pingboost 1 -timeout 3 +map boot_camp +exec server.cfg" > $XASH3D_BASEDIR/result/start.sh ;; 0.20) - echo "./xash +ip 0.0.0.0 -port $XASHDS_PORT -pingboost 1 -timeout 3 +map boot_camp +exec server.cfg" > $XASH3D_BASEDIR/result/start.sh + echo -e "#!/bin/bash\n./xash +ip 0.0.0.0 -port $XASHDS_PORT -pingboost 1 -timeout 3 +map boot_camp +exec server.cfg" > $XASH3D_BASEDIR/result/start.sh ;; esac