From 77c674b54eea9911ab43be1d2d7c34c9e1b8fe55 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 7 Feb 2012 18:05:07 -0500 Subject: [PATCH] common.sh: add missing die to local shflags inherit When we source the local copy of shflags, we don't check for errors like we do when sourcing the external one. Add a `die` call for that too. BUG=None TEST=`rm lib/shflags/shflags && (. ./common.sh)` now exits properly Change-Id: I62c9b33dd96f2934691c43d53dea012097116ca1 Reviewed-on: https://gerrit.chromium.org/gerrit/15443 Reviewed-by: Mike Frysinger Tested-by: Mike Frysinger Commit-Ready: Mike Frysinger --- common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.sh b/common.sh index f463d89a4f..a21cfa5384 100644 --- a/common.sh +++ b/common.sh @@ -150,7 +150,7 @@ fi # NOTE: This code snippet is in particular used by the au-generator (which # stores shflags in ./lib/shflags/) and should not be touched. if [ -f "${SCRIPTS_DIR}/lib/shflags/shflags" ]; then - . "${SCRIPTS_DIR}/lib/shflags/shflags" + . "${SCRIPTS_DIR}/lib/shflags/shflags" || die "Couldn't find shflags" else . ./lib/shflags/shflags || die "Couldn't find shflags" fi