From b5105bbc430312a116b078db74774f7b9ab871b3 Mon Sep 17 00:00:00 2001 From: Jackie Huang Date: Wed, 16 Oct 2019 14:53:59 +0800 Subject: [PATCH] build_oran.sh: use bash as interpreter and set pipefail Use bash as interpreter and set pipefail so that the non-zero exit status of bitbake command can be captured. Signed-off-by: Jackie Huang Change-Id: Icf186eb61bf1eef4a12d8a14146b2216722e910e --- scripts/build_oran.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build_oran.sh b/scripts/build_oran.sh index fd8df20..ea2231f 100755 --- a/scripts/build_oran.sh +++ b/scripts/build_oran.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash help_info () { cat << ENDHELP @@ -107,4 +107,5 @@ EOF # Build the oran-inf-host image mkdir -p logs TIMESTAMP=`date +"%Y%m%d_%H%M%S"` +set -o pipefail bitbake ${DRYRUN} oran-image-inf-host 2>&1|tee logs/bitbake_oran-image-inf-host_${TIMESTAMP}.log -- 2.16.6