mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2025-01-08 12:07:37 +08:00
fix(fctrserver): parse updated version string correctly (#4688)
This commit is contained in:
parent
72deed15a6
commit
3dabf33eaf
@ -1310,7 +1310,7 @@ fn_info_game_fctr() {
|
|||||||
# get server version if installed.
|
# get server version if installed.
|
||||||
local factoriobin="${executabledir}${executable:1}"
|
local factoriobin="${executabledir}${executable:1}"
|
||||||
if [ -f "${factoriobin}" ]; then
|
if [ -f "${factoriobin}" ]; then
|
||||||
serverversion="$(${factoriobin} --version | grep "Version:" | awk '{print $2}')"
|
serverversion="$(${factoriobin} --version | grep -m 1 "Version:" | awk '{print $2}')"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ fn_update_localbuild() {
|
|||||||
# Uses executable to get local build.
|
# Uses executable to get local build.
|
||||||
if [ -d "${executabledir}" ]; then
|
if [ -d "${executabledir}" ]; then
|
||||||
cd "${executabledir}" || exit
|
cd "${executabledir}" || exit
|
||||||
localbuild=$(${executable} --version | grep "Version:" | awk '{print $2}')
|
localbuild=$(${executable} --version | grep -m 1 "Version:" | awk '{print $2}')
|
||||||
fi
|
fi
|
||||||
if [ -z "${localbuild}" ]; then
|
if [ -z "${localbuild}" ]; then
|
||||||
fn_print_error "Checking local build: ${remotelocation}: missing local build info"
|
fn_print_error "Checking local build: ${remotelocation}: missing local build info"
|
||||||
|
Loading…
Reference in New Issue
Block a user