Procházet zdrojové kódy

Merge branch 'hotfix/190401.1'

Daniel Gibbs před 7 roky
rodič
revize
a14513584e
3 změnil soubory, kde provedl 8 přidání a 6 odebrání
  1. 2 2
      .travis.yml
  2. 2 0
      lgsm/functions/update_factorio.sh
  3. 4 4
      lgsm/functions/update_mta.sh

+ 2 - 2
.travis.yml

@@ -1,8 +1,8 @@
 language: bash node_js
 language: bash node_js
 dist: xenial
 dist: xenial
-sudo: required
 node_js:
 node_js:
   - 10
   - 10
+
 before_script:
 before_script:
     - curl -L "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/shunit2/shunit2-2.1.6.tgz" | tar zx
     - curl -L "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/shunit2/shunit2-2.1.6.tgz" | tar zx
 install:
 install:
@@ -42,4 +42,4 @@ jobs:
     - # stage name not required
     - # stage name not required
       script: bash tests/tests_ts3server.sh
       script: bash tests/tests_ts3server.sh
     - # stage name not required
     - # stage name not required
-      script: bash tests/tests_shellcheck.sh
+      script: bash tests/tests_shellcheck.sh

+ 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