mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-22 06:38:27 +00:00
moved message to function
This commit is contained in:
parent
2e65a98204
commit
2e8e7d99c7
@ -47,6 +47,9 @@ arkserverLog="arkserver.log" # here is logged the output of ShooterGameServer
|
|||||||
# Check if a new version is available but not apply it
|
# Check if a new version is available but not apply it
|
||||||
#
|
#
|
||||||
function checkForUpdate(){
|
function checkForUpdate(){
|
||||||
|
tput sc
|
||||||
|
echo "Querying Steam database for latest version..."
|
||||||
|
|
||||||
if isUpdateNeeded; then
|
if isUpdateNeeded; then
|
||||||
tput rc; tput ed;
|
tput rc; tput ed;
|
||||||
echo -e "Current version:" "$RED" $instver "$NORMAL"
|
echo -e "Current version:" "$RED" $instver "$NORMAL"
|
||||||
@ -332,8 +335,6 @@ case "$1" in
|
|||||||
forceUpdate
|
forceUpdate
|
||||||
;;
|
;;
|
||||||
checkupdate)
|
checkupdate)
|
||||||
tput sc
|
|
||||||
echo "Querying Steam database for latest version..."
|
|
||||||
checkForUpdate
|
checkForUpdate
|
||||||
;;
|
;;
|
||||||
broadcast)
|
broadcast)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user