From af50828c60af5e2390448fb75aa0b0f2f0fb62ba Mon Sep 17 00:00:00 2001 From: Guohan Lu Date: Sun, 28 Jul 2019 17:42:13 +0000 Subject: [PATCH] [build]: fail the build when there is error in build_image.sh Signed-off-by: Guohan Lu --- build_image.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build_image.sh b/build_image.sh index 41684227054..3084a4a2bd5 100755 --- a/build_image.sh +++ b/build_image.sh @@ -1,6 +1,9 @@ #!/bin/bash ## This script is to generate an ONIE installer image based on a file system overload +## Enable debug output for script +set -x -e + ## Read ONIE image related config file CONFIGURED_ARCH=$([ -f .arch ] && cat .arch || echo amd64)