|
@@ -105,9 +105,9 @@ fn_update_mta_localbuild(){
|
|
|
|
|
|
|
|
fn_update_mta_remotebuild(){
|
|
fn_update_mta_remotebuild(){
|
|
|
# Gets remote build info.
|
|
# Gets remote build info.
|
|
|
- local majorversion="$(curl -s https://raw.githubusercontent.com/multitheftauto/mtasa-blue/master/Server/version.h | grep "#define MTASA_VERSION_MAJOR" | awk '{ print $3 }' | sed 's/\r//g')"
|
|
|
|
|
- local minorversion="$(curl -s https://raw.githubusercontent.com/multitheftauto/mtasa-blue/master/Server/version.h | grep "#define MTASA_VERSION_MINOR" | awk '{ print $3 }' | sed 's/\r//g')"
|
|
|
|
|
- local maintenanceversion="$(curl -s https://raw.githubusercontent.com/multitheftauto/mtasa-blue/master/Server/version.h | grep "#define MTASA_VERSION_MAINTENANCE" | awk '{ print $3 }' | sed 's/\r//g')"
|
|
|
|
|
|
|
+ majorversion="$(curl -s https://raw.githubusercontent.com/multitheftauto/mtasa-blue/master/Server/version.h | grep "#define MTASA_VERSION_MAJOR" | awk '{ print $3 }' | sed 's/\r//g')"
|
|
|
|
|
+ minorversion="$(curl -s https://raw.githubusercontent.com/multitheftauto/mtasa-blue/master/Server/version.h | grep "#define MTASA_VERSION_MINOR" | awk '{ print $3 }' | sed 's/\r//g')"
|
|
|
|
|
+ maintenanceversion="$(curl -s https://raw.githubusercontent.com/multitheftauto/mtasa-blue/master/Server/version.h | grep "#define MTASA_VERSION_MAINTENANCE" | awk '{ print $3 }' | sed 's/\r//g')"
|
|
|
remotebuild="${majorversion}.${minorversion}.${maintenanceversion}"
|
|
remotebuild="${majorversion}.${minorversion}.${maintenanceversion}"
|
|
|
if [ "${installer}" != "1" ]; then
|
|
if [ "${installer}" != "1" ]; then
|
|
|
fn_print_dots "Checking for update: ${remotelocation}: checking remote build"
|
|
fn_print_dots "Checking for update: ${remotelocation}: checking remote build"
|