Browse Source

use branch name while checking for updates

pull/2013/head
Aleksandr Razumov 7 years ago
parent
commit
9d005b0b76
No known key found for this signature in database GPG Key ID: 1D14A82D2E311045
  1. 2
      lgsm/functions/update_steamcmd.sh

2
lgsm/functions/update_steamcmd.sh

@ -166,7 +166,7 @@ fn_update_steamcmd_check(){
# Gets availablebuild info
cd "${steamcmddir}" || exit
availablebuild=$(./steamcmd.sh +login "${steamuser}" "${steampass}" +app_info_update 1 +app_info_print "${appid}" +app_info_print "${appid}" +quit | sed -n '/branch/,$p' | grep -m 1 buildid | tr -cd '[:digit:]')
availablebuild=$(./steamcmd.sh +login "${steamuser}" "${steampass}" +app_info_update 1 +app_info_print "${appid}" +quit | sed '1,/branches/d' | sed "1,/${branchname}/d" | grep -m 1 buildid | tr -cd '[:digit:]')
if [ -z "${availablebuild}" ]; then
fn_print_fail "Checking for update: SteamCMD"
sleep 0.5

Loading…
Cancel
Save