Browse Source

refactor(update): redo steamcmd update part for new behavoir

pull/3139/head
H3o66 5 years ago
parent
commit
60508a493b
  1. 9
      lgsm/functions/update_steamcmd.sh

9
lgsm/functions/update_steamcmd.sh

@ -40,13 +40,8 @@ fn_update_steamcmd_remotebuild(){
find "${HOME}" -type f -name "appinfo.vdf" -exec rm -f {} \; find "${HOME}" -type f -name "appinfo.vdf" -exec rm -f {} \;
fi fi
if [ -n "${branch}" ]&&[ -n "${betapassword}" ]; then # password for branch not needed to check the buildid
remotebuild=$(${steamcmdcommand} +login "${steamuser}" "${steampass}" +app_info_update 1 +app_info_print "${appid}" -beta "${branch}" -betapassword "${betapassword}" +quit | sed '1,/branches/d' | sed "1,/${branch}/d" | grep -m 1 buildid | tr -cd '[:digit:]') remotebuild=$(${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:]')
elif [ -n "${branch}" ]&&[ "${branch}" != "public" ]; then
remotebuild=$(${steamcmdcommand} +login "${steamuser}" "${steampass}" +app_info_update 1 +app_info_print "${appid}" -beta "${branch}" +quit | sed '1,/branches/d' | sed "1,/${branch}/d" | grep -m 1 buildid | tr -cd '[:digit:]')
else
remotebuild=$(${steamcmdcommand} +login "${steamuser}" "${steampass}" +app_info_update 1 +app_info_print "${appid}" +quit | sed '1,/branches/d' | sed "1,/${branch}/d" | grep -m 1 buildid | tr -cd '[:digit:]')
fi
if [ "${firstcommandname}" != "INSTALL" ]; then if [ "${firstcommandname}" != "INSTALL" ]; then
fn_print_dots "Checking remote build: ${remotelocation}" fn_print_dots "Checking remote build: ${remotelocation}"

Loading…
Cancel
Save