mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 22:21:10 +02:00
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:
parent
61e0b6b6a5
commit
b2fe4658f0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user