Adding set -e to build commands
Change-Id: I72d02db1f6f8484f4ffb2d00406e6af2c866a7fb
diff --git a/tools/build/onos-change-version b/tools/build/onos-change-version
index 9d3c74a..2782b5c 100755
--- a/tools/build/onos-change-version
+++ b/tools/build/onos-change-version
@@ -3,6 +3,8 @@
# Changes ONOS version in POM files, and other release artifacts.
# -----------------------------------------------------------------------------
+set -e
+
[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
. $ONOS_ROOT/tools/build/envDefaults