File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -99,10 +99,7 @@ fn_update_mta_localbuild(){
99
99
100
100
fn_update_mta_remotebuild (){
101
101
# Gets remote build info.
102
- 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' )
103
- 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' )
104
- 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' )
105
- remotebuild=" ${majorversion} .${minorversion} .${maintenanceversion} "
102
+ remotebuild=$( curl -s " https://api.github.com/repos/multitheftauto/mtasa-blue/releases/latest" | jq -r ' .tag_name' )
106
103
if [ " ${firstcommandname} " != " INSTALL" ]; then
107
104
fn_print_dots " Checking remote build: ${remotelocation} "
108
105
# Checks if remotebuild variable has been set.
You can’t perform that action at this time.
0 commit comments