adjusted variable assignment in entrypoint

This commit is contained in:
Hendrik Boll 2019-09-27 23:38:24 +02:00
parent bba2e5c0ea
commit 35b9895041
1 changed files with 10 additions and 10 deletions

View File

@ -55,52 +55,52 @@ fi
if [[ -z "${GAMEMODE}" ]]; then
echo "No gamemode was specified. Defaulting to TimeAttack."
GAMEMODE=1
GAMEMODE="1"
fi
if [[ -z "${CHATTIME}" ]]; then
echo "No chat timeout was specified. Defaulting to 10000 ms."
CHATTIME=10000
CHATTIME="10000"
fi
if [[ -z "${FINISHTIMEOUT}" ]]; then
echo "No finish timeout was specified. Defaulting to adaptive mode."
FINISHTIMEOUT=1
FINISHTIMEOUT="1"
fi
if [[ -z "${DISABLERESPAWN}" ]]; then
echo "Respawns were not specified. Defaulting to enabled."
DISABLERESPAWN=0
DISABLERESPAWN="0"
fi
if [[ -z "${ROUNDS_POINTSLIMIT}" ]]; then
echo "No points limit was specified for rounds mode. Defaulting to 30."
ROUNDS_POINTSLIMIT=30
ROUNDS_POINTSLIMIT="30"
fi
if [[ -z "${TIMEATTACK_LIMIT}" ]]; then
echo "No time limit was specified for time attack mode. Defaulting to 180000 ms."
TIMEATTACK_LIMIT=180000
TIMEATTACK_LIMIT="180000"
fi
if [[ -z "${TEAM_POINTSLIMIT}" ]]; then
echo "No points limit was specified for team mode. Defaulting to 50."
TEAM_POINTSLIMIT=50
TEAM_POINTSLIMIT="50"
fi
if [[ -z "${TEAM_MAXPOINTS}" ]]; then
echo "No number of maximum points per round was specified for team mode. Defaulting to 6."
TEAM_MAXPOINTS=6
TEAM_MAXPOINTS="6"
fi
if [[ -z "${LAPS_NBLAPS}" ]]; then
echo "No number of laps was specified for laps mode. Defaulting to 5."
LAPS_NBLAPS=5
LAPS_NBLAPS="5"
fi
if [[ -z "${LAPS_TIMELIMIT}" ]]; then
echo "No time limit was specified for laps mode. Defaulting to no limit."
LAPS_TIMELIMIT=0
LAPS_TIMELIMIT="0"
fi