Pārlūkot izejas kodu

Able to set the git branch

FusionPBX 2 gadi atpakaļ
vecāks
revīzija
bd764df868
1 mainītis faili ar 2 papildinājumiem un 5 dzēšanām
  1. 2 5
      debian/resources/fusionpbx.sh

+ 2 - 5
debian/resources/fusionpbx.sh

@@ -19,11 +19,8 @@ if [ .$system_branch = .'master' ]; then
 	verbose "Using master"
 	verbose "Using master"
 	branch=""
 	branch=""
 else
 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
 fi
 
 
 #add the cache directory
 #add the cache directory