moved message to function

This commit is contained in:
FezVrasta 2015-06-26 15:39:50 +02:00
parent 2d8fde09f4
commit e288448de7

View File

@ -46,6 +46,9 @@ arkserverLog="arkserver.log" # here is logged the output of ShooterGameServer
# Check if a new version is available but not apply it
#
function checkForUpdate(){
tput sc
echo "Querying Steam database for latest version..."
if isUpdateNeeded; then
tput rc; tput ed;
echo -e "Current version:" "$RED" $instver "$NORMAL"
@ -313,8 +316,6 @@ case "$1" in
forceUpdate
;;
checkupdate)
tput sc
echo "Querying Steam database for latest version..."
checkForUpdate
;;
broadcast)