mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-10 06:26:57 +02:00
test_build_root: convert to arrays
Minor code clean up. BUG=None TEST=`build_image` still works + boots Change-Id: I0e26dd3575f963a52d522c4f7c2da8aa5a7dda5c Reviewed-on: https://gerrit.chromium.org/gerrit/30262 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
c17a493bcc
commit
2cf2102f99
@ -29,14 +29,17 @@ if [[ ! -d "$ROOT" ]]; then
|
||||
die_notrace "Root FS does not exist ($ROOT)"
|
||||
fi
|
||||
|
||||
BINARIES="$ROOT/usr/bin/Xorg
|
||||
$ROOT/boot/vmlinuz
|
||||
$ROOT/sbin/session_manager
|
||||
$ROOT/bin/sed
|
||||
$ROOT/opt/google/chrome/chrome"
|
||||
ROOT_BINARIES=(
|
||||
/usr/bin/Xorg
|
||||
/boot/vmlinuz
|
||||
/sbin/session_manager
|
||||
/bin/sed
|
||||
/opt/google/chrome/chrome
|
||||
)
|
||||
|
||||
EXITCODE=0
|
||||
for i in $BINARIES; do
|
||||
for i in "${BINARIES[@]}"; do
|
||||
i="${ROOT}${i}"
|
||||
if ! [[ -f $i ]]; then
|
||||
error "cannot find $i"
|
||||
EXITCODE=1
|
||||
|
Loading…
Reference in New Issue
Block a user