distro=`python -c "exec 'import platform; print platform.linux_distribution()[0].lower()'"`
chacra_endpoint="ceph/${chacra_ref}/${distro}/${DIST}/${ARCH}"
-# prevent early exit from a non-zero exit because we use `set -e`
-! chacractl exists binaries/${chacra_endpoint}; exists=$? || true
+chacractl exists binaries/${chacra_endpoint} ; exists=$?
# 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}"
-# prevent early exit from a non-zero exit because we use `set -e`
-! chacractl exists binaries/${chacra_baseurl}/${ARCH}; exists=$? || true
+chacractl exists binaries/${chacra_baseurl}/${ARCH} ; exists=$?
# 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_endpoint="ceph-deploy/${chacra_ref}/${DISTRO}/${DISTRO_VERSION}"
- # prevent early exit from a non-zero exit because we use `set -e`
- ! chacractl exists binaries/${chacra_endpoint}/${ARCH} ; exists=$? || true
+ chacractl exists binaries/${chacra_endpoint}/${ARCH} ; exists=$?
# 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_endpoint="ceph-deploy/${chacra_ref}/${DISTRO}/${DEB_BUILD}/${ARCH}"
- # prevent early exit from a non-zero exit because we use `set -e`
- ! chacractl exists binaries/${chacra_endpoint} ; exists=$? || true
+ chacractl exists binaries/${chacra_endpoint} ; exists=$?
# if the binary already exists in chacra, do not rebuild
if [ $exists -eq 0 ] && [ "$FORCE" = false ] ; then