Răsfoiți Sursa

missing fi added

Alasdair Haig 6 ani în urmă
părinte
comite
6b5007a11d
1 a modificat fișierele cu 5 adăugiri și 1 ștergeri
  1. 5 1
      lgsm/functions/update_steamcmd.sh

+ 5 - 1
lgsm/functions/update_steamcmd.sh

@@ -30,7 +30,11 @@ fn_update_steamcmd_dl(){
 	# All other servers.
 	# All other servers.
 	else
 	else
 		if [ -n "${branch}" ]; then
 		if [ -n "${branch}" ]; then
-			${unbuffer} ${steamcmdcommand} +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_update "${appid}" -beta "${branch}" +quit | tee -a "${lgsmlog}"
+			if [ -n "${branchpassword}" ]; then
+				${unbuffer} ${steamcmdcommand} +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_update "${appid}" -beta "${branch}" -betapassword "${branchpassword}" +quit | tee -a "${lgsmlog}"
+			else
+				${unbuffer} ${steamcmdcommand} +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_update "${appid}" -beta "${branch}" +quit | tee -a "${lgsmlog}"
+			fi
 		else
 		else
 			${unbuffer} ${steamcmdcommand} +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_update "${appid}" +quit | tee -a "${lgsmlog}"
 			${unbuffer} ${steamcmdcommand} +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_update "${appid}" +quit | tee -a "${lgsmlog}"
 		fi
 		fi