From 51db147378d35788f785005e749c80a4ed9f61e3 Mon Sep 17 00:00:00 2001 From: Bob Mader Date: Wed, 4 Dec 2024 17:46:35 -0600 Subject: [PATCH] fix shellcheck and codespell findings --- changelogs/fragments/bigboot_progress_meter.yml | 2 +- roles/bigboot/files/bigboot.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/changelogs/fragments/bigboot_progress_meter.yml b/changelogs/fragments/bigboot_progress_meter.yml index a0c1899..c14870f 100644 --- a/changelogs/fragments/bigboot_progress_meter.yml +++ b/changelogs/fragments/bigboot_progress_meter.yml @@ -1,2 +1,2 @@ minor_changes: - - Improved console logging of bigboot progress to incude percent complete + - Improved console logging of bigboot progress to include percent complete diff --git a/roles/bigboot/files/bigboot.sh b/roles/bigboot/files/bigboot.sh index b77de82..a806a02 100644 --- a/roles/bigboot/files/bigboot.sh +++ b/roles/bigboot/files/bigboot.sh @@ -77,7 +77,7 @@ fi for fd in /proc/"$pid"/fd/*; do if [[ "$(readlink "$fd")" == "$boot_disk_device" ]]; then offset="$(awk '/pos:/ {print $2}' /proc/"$pid"/fdinfo/"${fd##*/}")" - pct="$((-100*$offset/$next_part_size+100))" + pct="$((-100*offset/next_part_size+100))" break fi done