File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
2- # LinuxGSM command_ut99 .sh module
2+ # LinuxGSM command_xnt .sh module
33# Author: Daniel Gibbs
44# Contributors: https://linuxgsm.com/contrib
55# Website: https://linuxgsm.com
6- # Description: Handles updating of Unreal Tournament 99 servers.
6+ # Description: Handles updating of Xontic servers.
77
88moduleselfname=" $( basename " $( readlink -f " ${BASH_SOURCE[0]} " ) " ) "
99
@@ -17,10 +17,21 @@ fn_update_dl() {
1717fn_update_localbuild () {
1818 # Gets local build info.
1919 fn_print_dots " Checking local build: ${remotelocation} "
20-
20+ check_status.sh
2121 # Send version command to Xonotic server.
22- tmux -L " ${socketname} " send-keys -t " ${sessionname} " " version\r" > /dev/null 2>&1
23- fn_sleep_time_1
22+ if [ " ${status} " != " 0" ]; then
23+ tmux -L " ${socketname} " send-keys -t " ${sessionname} " " version" C-m > /dev/null 2>&1
24+ fn_sleep_time_1
25+ else
26+ exitbypass=1
27+ command_start.sh
28+ fn_firstcommand_reset
29+ exitbypass=1
30+ fn_sleep_time_5
31+ tmux -L " ${socketname} " send-keys -t " ${sessionname} " " version" C-m > /dev/null 2>&1
32+ command_stop.sh
33+ fn_firstcommand_reset
34+ fi
2435
2536 # Uses log file to get local build.
2637 localbuild=$( grep " SVQC version: xonotic-v" " ${consolelogdir} " /* 2> /dev/null | tail -1 | sed ' s/.*SVQC version: \(xonotic-v[0-9.]*\).*/\1/' | tr -d ' \000-\011\013-\037' )
You can’t perform that action at this time.
0 commit comments