Skip to content

Commit 3d175b4

Browse files
authored
fix(mta): fix update not working, as the old way does not work anymore (#3625)
1 parent 48c8bc7 commit 3d175b4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lgsm/functions/update_mta.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,7 @@ fn_update_mta_localbuild(){
9999

100100
fn_update_mta_remotebuild(){
101101
# 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')
106103
if [ "${firstcommandname}" != "INSTALL" ]; then
107104
fn_print_dots "Checking remote build: ${remotelocation}"
108105
# Checks if remotebuild variable has been set.

0 commit comments

Comments
 (0)