Browse Source

fix(steamcmd): update remotebuildversion variable to work with recent steamcmd changes

Daniel Gibbs 1 year ago
parent
commit
d8d833ac49
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lgsm/modules/core_steamcmd.sh

+ 2 - 1
lgsm/modules/core_steamcmd.sh

@@ -182,8 +182,9 @@ fn_update_steamcmd_remotebuild() {
 	if [ "${CI}" ]; then
 	if [ "${CI}" ]; then
 		${steamcmdcommand} +login "${steamuser}" "${steampass}" +app_info_update 1 +quit > /dev/null 2>&1
 		${steamcmdcommand} +login "${steamuser}" "${steampass}" +app_info_update 1 +quit > /dev/null 2>&1
 	fi
 	fi
+
 	# password for branch not needed to check the buildid
 	# password for branch not needed to check the buildid
-	remotebuildversion=$(${steamcmdcommand} +login "${steamuser}" "${steampass}" +app_info_update 1 +app_info_print "${appid}" +quit | sed -e '/"branches"/,/^}/!d' | sed -n "/\"${branch}\"/,/}/p" | grep -m 1 buildid | tr -cd '[:digit:]')
+	remotebuildversion=$(${steamcmdcommand} +login "${steamuser}" "${steampass}" +app_info_request "${appid}" +login "${steamuser}" "${steampass}" +app_info_update 1 +app_info_print "${appid}" +quit | sed -e '/"branches"/,/^}/!d' | sed -n "/\"${branch}\"/,/}/p" | grep -m 1 buildid | tr -cd '[:digit:]')
 
 
 	if [ "${firstcommandname}" != "INSTALL" ]; then
 	if [ "${firstcommandname}" != "INSTALL" ]; then
 		fn_print_dots "Checking remote build: ${remotelocation}"
 		fn_print_dots "Checking remote build: ${remotelocation}"