aglsetup: exit with error if fragment script fails 11/12111/2
authorStephane Desneux <stephane.desneux@iot.bzh>
Thu, 23 Nov 2017 13:57:50 +0000 (14:57 +0100)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 23 Nov 2017 22:07:34 +0000 (22:07 +0000)
Bug-AGL: SPEC-1002

Change-Id: I93407ca24c67b6b7c4e9aa09325fbf78d01f1c64
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/12111
Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
scripts/.aglsetup_genconfig.bash

index 48af0fb..d4f3ba8 100755 (executable)
@@ -213,7 +213,7 @@ function append_fragment() {
 function execute_setup() {
        script=$1
        debug "Executing script $script"
-       opts=
+       opts="-e"
        [[ $DEBUG == 1 ]] && opts="$opts -x"
        pushd $BUILDDIR &>/dev/null
                $BASH $opts $script \