update_kernel: Fixup style nits

These style nits are in preexisting code but are similar to style
comments that vapier found on
<https://gerrit.chromium.org/gerrit/#/c/39390/2>.

BUG=None
TEST=Use update_kernel.sh

Change-Id: I26cf133a0f0495feee715e934bf819e90c0a688d
Reviewed-on: https://gerrit.chromium.org/gerrit/39432
Tested-by: Doug Anderson <dianders@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Ready: Doug Anderson <dianders@chromium.org>
This commit is contained in:
Doug Anderson 2012-12-07 17:33:56 -08:00 committed by Gerrit
parent 61e0b6b6a5
commit b2fe4658f0

View File

@ -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