Daniel Gibbs
12 months ago
No known key found for this signature in database
GPG Key ID: 2076B128385E8C55
2 changed files with
5 additions and
5 deletions
-
lgsm/modules/command_start.sh
-
lgsm/modules/update_xnt.sh
|
@ -163,11 +163,6 @@ fn_start_tmux() { |
|
|
fi |
|
|
fi |
|
|
rm -f "${lgsmlogdir:?}/.${selfname}-tmux-error.tmp" 2> /dev/null |
|
|
rm -f "${lgsmlogdir:?}/.${selfname}-tmux-error.tmp" 2> /dev/null |
|
|
echo -en "\n" |
|
|
echo -en "\n" |
|
|
|
|
|
|
|
|
# Send version command to Xonotic server. |
|
|
|
|
|
if [ "${shortname}" == "xnt" ]; then |
|
|
|
|
|
tmux -L "${socketname}" send-keys -t "${sessionname}" version > /dev/null 2>&1 |
|
|
|
|
|
fi |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
# If user ran the start command monitor will become enabled. |
|
|
# If user ran the start command monitor will become enabled. |
|
|
|
@ -18,6 +18,11 @@ fn_update_dl() { |
|
|
fn_update_localbuild() { |
|
|
fn_update_localbuild() { |
|
|
# Gets local build info. |
|
|
# Gets local build info. |
|
|
fn_print_dots "Checking local build: ${remotelocation}" |
|
|
fn_print_dots "Checking local build: ${remotelocation}" |
|
|
|
|
|
|
|
|
|
|
|
# Send version command to Xonotic server. |
|
|
|
|
|
tmux -L "${socketname}" send-keys -t "${sessionname}" "version\r" > /dev/null 2>&1 |
|
|
|
|
|
fn_sleep_time_1 |
|
|
|
|
|
|
|
|
# Uses log file to get local build. |
|
|
# Uses log file to get local build. |
|
|
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') |
|
|
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') |
|
|
if [ -z "${localbuild}" ]; then |
|
|
if [ -z "${localbuild}" ]; then |
|
|