mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2025-01-07 03:26:50 +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.
|
||||
local factoriobin="${executabledir}${executable:1}"
|
||||
if [ -f "${factoriobin}" ]; then
|
||||
serverversion="$(${factoriobin} --version | grep "Version:" | awk '{print $2}')"
|
||||
serverversion="$(${factoriobin} --version | grep -m 1 "Version:" | awk '{print $2}')"
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@ fn_update_localbuild() {
|
||||
# Uses executable to get local build.
|
||||
if [ -d "${executabledir}" ]; then
|
||||
cd "${executabledir}" || exit
|
||||
localbuild=$(${executable} --version | grep "Version:" | awk '{print $2}')
|
||||
localbuild=$(${executable} --version | grep -m 1 "Version:" | awk '{print $2}')
|
||||
fi
|
||||
if [ -z "${localbuild}" ]; then
|
||||
fn_print_error "Checking local build: ${remotelocation}: missing local build info"
|
||||
|
Loading…
Reference in New Issue
Block a user