Sfoglia il codice sorgente

renamed var to branch for continuity with steamCMD

Renamed updatebranch variable to branch to coincide with the change to the fctrserver.sh variable change in commit 6d5ea2090cf7d65f4485851fa0c2ba66c8f695c7
Digital-Storm 9 anni fa
parent
commit
96ece6a4de
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lgsm/functions/update_factorio.sh

+ 1 - 1
lgsm/functions/update_factorio.sh

@@ -76,7 +76,7 @@ fn_update_factorio_arch(){
 
 
 fn_update_factorio_availablebuild(){
 fn_update_factorio_availablebuild(){
 	# Gets latest build info.
 	# Gets latest build info.
-	availablebuild=$(curl -s https://www.factorio.com/download-headless/"${updatebranch}" | grep 'headless/linux64' | head -n 1 | grep -oP '(?<=get-download/).*?(?=/)')
+	availablebuild=$(curl -s https://www.factorio.com/download-headless/"${branch}" | grep 'headless/linux64' | head -n 1 | grep -oP '(?<=get-download/).*?(?=/)')
 	sleep 1
 	sleep 1
 
 
 	# Checks if availablebuild variable has been set
 	# Checks if availablebuild variable has been set