Signed-off-by: Alfredo Deza <adeza@redhat.com>
distro=`python -c "exec 'import platform; print platform.linux_distribution()[0].lower()'"`
chacra_endpoint="ceph/${chacra_ref}/${distro}/${DIST}/${ARCH}"
-chacractl exists binaries/${chacra_endpoint}; exists=$? || true
+# prevent early exit from a non-zero exit because we use `set -e`
+! chacractl exists binaries/${chacra_endpoint}; exists=$? || true
# if the binary already exists in chacra, do not rebuild
if [ $exists -eq 0 ] && [ "$FORCE" = false ] ; then
[ "$TEST" = true ] && chacra_ref="test" || chacra_ref="$BRANCH"
chacra_baseurl="ceph/${chacra_ref}/${DISTRO}/${RELEASE}"
-chacractl exists binaries/${chacra_baseurl}/${ARCH}; exists=$? || true
+# prevent early exit from a non-zero exit because we use `set -e`
+! chacractl exists binaries/${chacra_baseurl}/${ARCH}; exists=$? || true
# if the binary already exists in chacra, do not rebuild
if [ $exists -eq 0 ] && [ "$FORCE" = false ]; then