Browse Source

set branchname to public if no custom branch

pull/2962/head
Daniel Gibbs 5 years ago
parent
commit
7beed1b520
  1. 7
      lgsm/functions/update_steamcmd.sh

7
lgsm/functions/update_steamcmd.sh

@ -13,11 +13,8 @@ fn_update_steamcmd_localbuild(){
# Uses appmanifest to find local build. # Uses appmanifest to find local build.
localbuild=$(grep buildid "${appmanifestfile}" | tr '[:blank:]"' ' ' | tr -s ' ' | cut -d\ -f3) localbuild=$(grep buildid "${appmanifestfile}" | tr '[:blank:]"' ' ' | tr -s ' ' | cut -d\ -f3)
# Set branch for updateinfo. # Set branch to public if no custom branch.
IFS=' ' read -ra branchsplits <<< "${branch}" if [ -z "${branchname}" ]; then
if [ "${#branchsplits[@]}" -gt 1 ]; then
branchname="${branchsplits[1]}"
else
branchname="public" branchname="public"
fi fi

Loading…
Cancel
Save