From 7beed1b520a1558c900984ec9e5db4cfd333fda5 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 13 Jul 2020 21:50:10 +0100 Subject: [PATCH] set branchname to public if no custom branch --- lgsm/functions/update_steamcmd.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lgsm/functions/update_steamcmd.sh b/lgsm/functions/update_steamcmd.sh index 4871bd3ba..6396f698d 100644 --- a/lgsm/functions/update_steamcmd.sh +++ b/lgsm/functions/update_steamcmd.sh @@ -13,11 +13,8 @@ fn_update_steamcmd_localbuild(){ # Uses appmanifest to find local build. localbuild=$(grep buildid "${appmanifestfile}" | tr '[:blank:]"' ' ' | tr -s ' ' | cut -d\ -f3) - # Set branch for updateinfo. - IFS=' ' read -ra branchsplits <<< "${branch}" - if [ "${#branchsplits[@]}" -gt 1 ]; then - branchname="${branchsplits[1]}" - else + # Set branch to public if no custom branch. + if [ -z "${branchname}" ]; then branchname="public" fi