[Fuego] [PATCH] Return error if docker install script fails

Guilherme Campos Camargo guicc at profusion.mobi
Wed Mar 7 20:07:14 UTC 2018

Before this patch, install.sh would return 0 even if
fuego-host-scripts/docker-build-image.sh (that's sourced in it) failed,
what could possibly mislead a script or program that depends on its

By using 'set -e' we make sure that any failure inside its sourced
scripts is propagated, aborting the execution and returning the proper
error code.

Signed-off-by: Guilherme Campos Camargo <guicc at profusion.mobi>
 install.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/install.sh b/install.sh
index 2193559..6441ff0 100755
--- a/install.sh
+++ b/install.sh
@@ -1,2 +1,6 @@
+set -e
 source fuego-host-scripts/docker-build-image.sh $1
 sudo /bin/sh -c "if [ -f /etc/ttc.conf -a ! -f fuego-ro/conf/ttc.conf ] ; then cp /etc/ttc.conf fuego-ro/conf/ttc.conf ; fi"

More information about the Fuego mailing list