Browse Source

fix: fix steamcmd build version retrieval

The code changes in this commit fix an issue with retrieving the build version from SteamCMD. The previous implementation was not correctly capturing the buildid. This has been resolved by adding additional echo statements for debugging purposes.
pull/4298/head
Daniel Gibbs 2 years ago
parent
commit
4a06a239c6
  1. 2
      lgsm/modules/core_steamcmd.sh

2
lgsm/modules/core_steamcmd.sh

@ -179,7 +179,9 @@ fn_update_steamcmd_remotebuild() {
fi
# password for branch not needed to check the buildid
echo "TEST"
${steamcmdcommand} +login "${steamuser}" "${steampass}" +app_info_update 1 +app_info_print "${appid}" +quit
echo "TEST"
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:]')
if [ "${firstcommandname}" != "INSTALL" ]; then

Loading…
Cancel
Save