]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-build-next: fix logic for the FORCE flag
authorAndrew Schoen <aschoen@redhat.com>
Wed, 28 Oct 2015 22:43:28 +0000 (17:43 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 28 Oct 2015 22:43:28 +0000 (17:43 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ceph-build-next/build/build_deb
ceph-build-next/build/build_rpm

index c48d3407b6d7a54f1617905554b4916195733b4f..68856364de687125713ba0358632876d7106ecf3 100644 (file)
@@ -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
index bc80048edcc4ce11357df7472ce2fffaa181ad44..e5384012b7bbe1dbfe906ed91b5f287c283f9c0a 100644 (file)
@@ -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