Permalink
Browse files

use branch name while checking for updates

  • Loading branch information...
ernado committed Sep 18, 2018
1 parent d6847aa commit 9d005b0b7621eaeeea99333bdd1b856e1e9aa03d
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 9d005b0

Please sign in to comment.