From dd122132e0a231c491e5166acc3efc3c1480af7f Mon Sep 17 00:00:00 2001 From: Braunson <bmazoka@gmail.com> Date: Sun, 22 Jan 2017 20:14:38 -0600 Subject: [PATCH] File name for the fetch --- lgsm/functions/update_mta.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lgsm/functions/update_mta.sh b/lgsm/functions/update_mta.sh index 0268c5d0e..ce7824dc6 100644 --- a/lgsm/functions/update_mta.sh +++ b/lgsm/functions/update_mta.sh @@ -70,7 +70,7 @@ fn_update_mta_currentbuild(){ fn_mta_getServerVersion() { - fn_fetch_file "https://raw.githubusercontent.com/multitheftauto/mtasa-blue/master/Server/version.h" "${tmpdir}" # we need to find latest stable version here + fn_fetch_file "https://raw.githubusercontent.com/multitheftauto/mtasa-blue/master/Server/version.h" "${tmpdir}" "version.h" # we need to find latest stable version here local MAJOR_VERSION="$(cat ${tmpdir}/version.h | grep "#define MTASA_VERSION_MAJOR" | awk '{ print $3 }' | sed 's/\r//g')" local MINOR_VERSION="$(cat ${tmpdir}/version.h | grep "#define MTASA_VERSION_MINOR" | awk '{ print $3 }' | sed 's/\r//g')" local MAINTENANCE_VERSION="$(cat ${tmpdir}/version.h | grep "#define MTASA_VERSION_MAINTENANCE" | awk '{ print $3 }' | sed 's/\r//g')"