From b2fe4658f071ca06747b01c7ae6c6e0468615419 Mon Sep 17 00:00:00 2001 From: Doug Anderson Date: Fri, 7 Dec 2012 17:33:56 -0800 Subject: [PATCH] update_kernel: Fixup style nits These style nits are in preexisting code but are similar to style comments that vapier found on . BUG=None TEST=Use update_kernel.sh Change-Id: I26cf133a0f0495feee715e934bf819e90c0a688d Reviewed-on: https://gerrit.chromium.org/gerrit/39432 Tested-by: Doug Anderson Reviewed-by: Mike Frysinger Commit-Ready: Doug Anderson --- update_kernel.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/update_kernel.sh b/update_kernel.sh index 2b9b2dc92f..4cb0bb6a8c 100755 --- a/update_kernel.sh +++ b/update_kernel.sh @@ -57,8 +57,7 @@ learn_partition_and_ro() { FLAGS_partition="${FLAGS_device}4" fi if [ -z "${FLAGS_partition}" ]; then - error "Partition required" - exit 1 + die "Partition required" fi info "Target reports kernel partition is ${FLAGS_partition}" } @@ -168,7 +167,7 @@ main() { # sync for safety to avoid random file system corruption. remote_sh sync - if [ "${FLAGS_reboot}" -eq ${FLAGS_TRUE} ]; then + if [ ${FLAGS_reboot} -eq ${FLAGS_TRUE} ]; then echo "rebooting" remote_reboot