Browse Source

Merge branch 'hotfix/190401.1' into develop

Daniel Gibbs 7 years ago
parent
commit
6a43af9c36
3 changed files with 7 additions and 6 deletions
  1. 1 2
      .travis.yml
  2. 2 0
      lgsm/functions/update_factorio.sh
  3. 4 4
      lgsm/functions/update_mta.sh

+ 1 - 2
.travis.yml

@@ -1,5 +1,4 @@
-
-language: node_js
+language: bash node_js
 dist: xenial
 dist: xenial
 node_js:
 node_js:
   - 10
   - 10

+ 2 - 0
lgsm/functions/update_factorio.sh

@@ -153,6 +153,8 @@ if [ "${branch}" == "stable" ]; then
 	downloadbranch="stable"
 	downloadbranch="stable"
 elif [ "${branch}" == "experimental" ]; then
 elif [ "${branch}" == "experimental" ]; then
 	downloadbranch="latest"
 	downloadbranch="latest"
+else
+	downloadbranch="${branch}"
 fi
 fi
 
 
 if [ "${installer}" == "1" ]; then
 if [ "${installer}" == "1" ]; then

+ 4 - 4
lgsm/functions/update_mta.sh

@@ -9,11 +9,11 @@ local commandaction="Update"
 local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 
 fn_update_mta_dl(){
 fn_update_mta_dl(){
-	fn_fetch_file "http://linux.mtasa.com/dl/${numversion}/multitheftauto_linux_x64-${fullversion}.tar.gz" "${tmpdir}" "multitheftauto_linux_x64-${fullversion}.tar.gz"
-	mkdir "${tmpdir}/multitheftauto_linux_x64-${fullversion}"
-	fn_dl_extract "${tmpdir}" "multitheftauto_linux_x64-${fullversion}.tar.gz" "${tmpdir}/multitheftauto_linux_x64-${fullversion}"
+	fn_fetch_file "http://linux.mtasa.com/dl/multitheftauto_linux_x64.tar.gz" "${tmpdir}" "multitheftauto_linux_x64.tar.gz"
+	mkdir "${tmpdir}/multitheftauto_linux_x64"
+	fn_dl_extract "${tmpdir}" "multitheftauto_linux_x64.tar.gz" "${tmpdir}/multitheftauto_linux_x64"
 	echo -e "copying to ${serverfiles}...\c"
 	echo -e "copying to ${serverfiles}...\c"
-	cp -R "${tmpdir}/multitheftauto_linux_x64-${fullversion}/multitheftauto_linux_x64-${fullversion}/"* "${serverfiles}"
+	cp -R "${tmpdir}/multitheftauto_linux_x64/multitheftauto_linux_x64/"* "${serverfiles}"
 	local exitcode=$?
 	local exitcode=$?
 	if [ "${exitcode}" == "0" ]; then
 	if [ "${exitcode}" == "0" ]; then
 		fn_print_ok_eol_nl
 		fn_print_ok_eol_nl