Update start-server.sh

This commit is contained in:
2019-04-23 09:59:48 +02:00
committed by GitHub
parent 8d18addf0a
commit 09c44ab82c

View File

@@ -7,9 +7,15 @@ if [ ! -f ${STEAMCMD_DIR}/steamcmd.sh ]; then
fi
echo "---Update SteamCMD---"
${STEAMCMD_DIR}/steamcmd.sh \
if [ -z "USERNAME" ] then
${STEAMCMD_DIR}/steamcmd.sh \
+login anonymous \
+quit
else
${STEAMCMD_DIR}/steamcmd.sh \
+login $USERNAME $PASSWRD \
+quit
fi
if [ -z "USERNAME" ] then
sleep infinity