mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 12:16:41 +02:00
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 <vapier@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org> Commit-Ready: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
parent
669b28b666
commit
77c674b54e
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user