Browse Source

optimsed availablebuild var

no longer has so many |
pull/1323/head
Daniel Gibbs 8 years ago
parent
commit
a05358dd06
  1. 2
      lgsm/functions/update_steamcmd.sh

2
lgsm/functions/update_steamcmd.sh

@ -156,7 +156,7 @@ fn_update_steamcmd_check(){
fi
# Gets availablebuild info
availablebuild=$(./steamcmd.sh +login "${steamuser}" "${steampass}" +app_info_update 1 +app_info_print "${appid}" +app_info_print "${appid}" +quit | grep -EA 1000 "^\s+\"branches\"$" | grep -EA 5 "^\s+\"${branchname}\"$" | grep -m 1 -EB 10 "^\s+}$" | grep -E "^\s+\"buildid\"\s+" | tr '[:blank:]"' ' ' | tr -s ' ' | cut -d\ -f3)
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:]')
if [ -z "${availablebuild}" ]; then
fn_print_fail "Checking for update: SteamCMD"
sleep 1

Loading…
Cancel
Save