From 569a3d70e4f9c358ea299371024721bd88a91454 Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Wed, 28 Oct 2015 17:43:28 -0500 Subject: [PATCH] ceph-build-next: fix logic for the FORCE flag Signed-off-by: Andrew Schoen --- ceph-build-next/build/build_deb | 2 +- ceph-build-next/build/build_rpm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ceph-build-next/build/build_deb b/ceph-build-next/build/build_deb index c48d3407..68856364 100644 --- a/ceph-build-next/build/build_deb +++ b/ceph-build-next/build/build_deb @@ -39,7 +39,7 @@ chacra_endpoint="ceph/${chacra_ref}/${distro}/{$dist}/${ARCH}" chacractl exists binaries/${chacra_endpoint}; exists=$? || true # if the binary already exists in chacra, do not rebuild -if [ $exists -e 0 ] && [ "$FORCE" = false ] ; then +if [ $exists -eq 0 ] && [ "$FORCE" = false ] ; then echo "The endpoint at ${chacra_endpoint} already exists and FORCE was not set, Exiting..." exit 0 fi diff --git a/ceph-build-next/build/build_rpm b/ceph-build-next/build/build_rpm index bc80048e..e5384012 100644 --- a/ceph-build-next/build/build_rpm +++ b/ceph-build-next/build/build_rpm @@ -65,7 +65,7 @@ chacra_baseurl="ceph/${chacra_ref}/${DISTRO}/${RELEASE}" chacractl exists binaries/${chacra_baseurl}/${ARCH}; exists=$? || true # if the binary already exists in chacra, do not rebuild -if [ $exists -e 0 ] && [ "$FORCE" = false ]; then +if [ $exists -eq 0 ] && [ "$FORCE" = false ]; then echo "The endpoint at ${chacra_baseurl}/${ARCH} already exists and FORCE was not set, Exiting..." exit 0 fi -- 2.39.5