From 02d5fabe6839bbf95c68bcb9a52374886edd7275 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 27 Apr 2023 21:49:51 -0500 Subject: [PATCH] Update run.sh --- run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 67a46db..4c57426 100755 --- a/run.sh +++ b/run.sh @@ -47,7 +47,8 @@ if [ "${1}" == "update" ]; then fi cd ${MMFOLDER} - if [ "`git log --pretty=%H ...refs/heads/dev^ | head -n 1`" != "`git ls-remote origin -h refs/heads/dev |cut -f1`" ]; then + [ "${GITBRANCH}" != "" ] && gb=${GITBRANCH} || gb="master" + if [ "`git log --pretty=%H ...refs/heads/${gb}^ | head -n 1`" != "`git ls-remote origin -h refs/heads/${gb} |cut -f1`" ]; then if [ "${2}" != "q" ]; then echo -en "\e[1A"; echo -e "\e[0K\r ${idsCL[LightCyan]}Installing mediamanager updates...${idsCL[Default]}"