Corrected comparison.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
Konstantina Chremmou 2016-12-15 15:26:44 +00:00
parent 0b74802e4f
commit 44fb5a11a3
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ OUTPUT_DIR=${ROOT}/output
rm -rf ${ROOT}/branding.git
BRANDING_REMOTE=https://code.citrite.net/scm/xs/branding.git
if [ -z $(git ls-remote --heads ${BRANDING_REMOTE} | grep ${XS_BRANCH}) ] ; then
if [ -z "$(git ls-remote --heads ${BRANDING_REMOTE} | grep ${XS_BRANCH})" ] ; then
echo "Branch ${XS_BRANCH} not found on branding.git. Reverting to master."
git clone -b master ${BRANDING_REMOTE} ${ROOT}/branding.git
else

View File

@ -64,7 +64,7 @@ echo "xenadmin xenadmin.git ${get_REVISION:0:12}" >> ${OUTPUT_DIR}/manifest
rm -rf ${ROOT}/xenadmin-branding.git
BRAND_REMOTE=https://code.citrite.net/scm/xsc/xenadmin-branding.git
if [ -z $(git ls-remote --heads ${BRAND_REMOTE} | grep ${XS_BRANCH}) ] ; then
if [ -z "$(git ls-remote --heads ${BRAND_REMOTE} | grep ${XS_BRANCH})" ] ; then
echo "Branch ${XS_BRANCH} not found on xenadmin-branding.git. Reverting to master."
git clone -b master ${BRAND_REMOTE} ${ROOT}/xenadmin-branding.git
else