Add error condition when building image
authorEduardo Ramos Testillano (eramedu) <eduardo.ramos.testillano@ericsson.com>
Wed, 13 May 2020 16:32:39 +0000 (18:32 +0200)
committerEduardo Ramos Testillano (eramedu) <eduardo.ramos.testillano@ericsson.com>
Wed, 13 May 2020 16:32:39 +0000 (18:32 +0200)
Exit if any fail happens.

tools/build-adml-http

index 5f635c2..cdb9fce 100755 (executable)
@@ -25,7 +25,7 @@ echo ${AD} | ${REPO_DIR}/example/diameter/launcher/deploy-adml-http.sh
 
 echo
 echo "Generate docker image ..."
-build_image ${IMAGEDIR} ${TAG} ${IMAGEDIR}
+build_image ${IMAGEDIR} ${TAG} ${IMAGEDIR} || exit 1
 
 echo
 echo "Done !"