From 61325d53b4ea0ed79fbeb49a5e712de0e6db887f Mon Sep 17 00:00:00 2001 From: SJS87 Date: Mon, 7 Nov 2016 15:17:58 +0000 Subject: [PATCH] Update itec-fusionpbx-install.sh (#49) Fix broken if statement. --- debian/resources/fusionpbx.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/resources/fusionpbx.sh b/debian/resources/fusionpbx.sh index 46c7bd1..fbadfea 100755 --- a/debian/resources/fusionpbx.sh +++ b/debian/resources/fusionpbx.sh @@ -13,7 +13,7 @@ verbose "Installing FusionPBX" apt-get install -y --force-yes vim git dbus haveged ssl-cert apt-get install -y --force-yes ghostscript libtiff5-dev libtiff-tools -if [ $USE_SYSTEM_MASTER = false ]; then +if [ $USE_SYSTEM_MASTER == false ]; then FUSION_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) FUSION_MINOR=$(git ls-remote --tags https://github.com/fusionpbx/fusionpbx.git $FUSION_MAJOR.* | cut -d/ -f3 | grep -P '^\d+\.\d+' | sort | tail -n 1 | cut -d. -f2) FUSION_VERSION=$FUSION_MAJOR.$FUSION_MINOR