Просмотр исходного кода

corrected branch select if statement

Daniel Gibbs 8 лет назад
Родитель
Сommit
70a457a328
1 измененных файлов с 1 добавлено и 1 удалено
  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.
-	if [ "${branch}" ]; then
+	if [ "${branch}" != "stable" ]; then
 		availablebuild=$(${curlpath} -s https://www.factorio.com/download-headless/"${branch}" | grep 'headless/linux64' | head -n 1 | grep -oP '(?<=get-download/).*?(?=/)')
 		availablebuild=$(${curlpath} -s https://www.factorio.com/download-headless/"${branch}" | grep 'headless/linux64' | head -n 1 | grep -oP '(?<=get-download/).*?(?=/)')
 	else
 	else
 		availablebuild=$(${curlpath} -s https://www.factorio.com/download-headless | grep 'headless/linux64' | head -n 1 | grep -oP '(?<=get-download/).*?(?=/)')
 		availablebuild=$(${curlpath} -s https://www.factorio.com/download-headless | grep 'headless/linux64' | head -n 1 | grep -oP '(?<=get-download/).*?(?=/)')