From bd764df868b00b95cb1f2c30e9978e66804e7998 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 11 Sep 2023 11:15:44 -0600 Subject: [PATCH] Able to set the git branch --- debian/resources/fusionpbx.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/debian/resources/fusionpbx.sh b/debian/resources/fusionpbx.sh index 556b2e6..16855a9 100755 --- a/debian/resources/fusionpbx.sh +++ b/debian/resources/fusionpbx.sh @@ -19,11 +19,8 @@ if [ .$system_branch = .'master' ]; then verbose "Using master" branch="" else - system_major=$(git ls-remote --heads https://github.com/fusionpbx/fusionpbx.git | cut -d/ -f 3 | grep -P '^\d+\.\d+' | sort | tail -n 1 | cut -d. -f1) - system_minor=$(git ls-remote --tags https://github.com/fusionpbx/fusionpbx.git $system_major.* | cut -d/ -f3 | grep -P '^\d+\.\d+' | sort | tail -n 1 | cut -d. -f2) - system_version=$system_major.$system_minor - verbose "Using version $system_version" - branch="-b $system_version" + verbose "Using version $system_branch" + branch="-b $system_branch" fi #add the cache directory