From: Jackie Huang Date: Wed, 16 Oct 2019 06:53:59 +0000 (+0800) Subject: build_oran.sh: use bash as interpreter and set pipefail X-Git-Tag: bronze-rc0~135 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=b5105bbc430312a116b078db74774f7b9ab871b3;p=pti%2Frtp.git 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 --- 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