Bug fixes to bazel publishing

Change-Id: I3c235a1ba009b998035e6d0db85818308cf0ecde
diff --git a/tools/build/onos-publish-catalog b/tools/build/onos-publish-catalog
index c095bdb..410e022 100755
--- a/tools/build/onos-publish-catalog
+++ b/tools/build/onos-publish-catalog
@@ -3,6 +3,8 @@
 # Generates a catalog for publishing ONOS artifacts to a Maven repository.
 # -----------------------------------------------------------------------------
 
+set -e -o pipefail
+
 CATALOG=${1:-/tmp/onos.catalog}
 
 rm -f $CATALOG