From 022ee2303841cab13047daf0e49ab98b41a00b22 Mon Sep 17 00:00:00 2001 From: Ali Maredia Date: Tue, 21 Feb 2017 15:30:12 -0500 Subject: [PATCH] nfs-ganesha: fix shaman url check for build_deb Signed-off-by: Ali Maredia --- nfs-ganesha/build/build_deb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nfs-ganesha/build/build_deb b/nfs-ganesha/build/build_deb index f5dfc891..3def9083 100644 --- a/nfs-ganesha/build/build_deb +++ b/nfs-ganesha/build/build_deb @@ -7,7 +7,8 @@ if test "$DISTRO" != "debian" -a "$DISTRO" != "ubuntu"; then fi REPO_URL="https://shaman.ceph.com/api/repos/ceph/$CEPH_BRANCH/$CEPH_SHA1/$DISTRO/$DIST/repo" -if `curl --fail -L $REPO_URL`; then +SHAMAN_MIRROR=`curl --fail -L ${REPO_URL}` +if [[ ${SHAMAN_MIRROR} ]]; then echo "Ceph debian lib repo exists in shaman" else echo "Ceph debian lib repo does NOT exist in shaman" @@ -82,7 +83,6 @@ sudo pbuilder update \ --components "main restricted universe multiverse" # add other mirror to pbuilder -SHAMAN_MIRROR=`curl -L ${REPO_URL}` sudo pbuilder update \ --basetgz $PBUILDDIR/$DIST.tgz \ --distribution $DIST \ -- 2.39.5