From 2397569412eff421121a457cf3492fa315e6c2ac Mon Sep 17 00:00:00 2001 From: oddlama Date: Wed, 5 Oct 2022 15:49:37 +0200 Subject: [PATCH] chore: adhere to shellcheck rules --- scripts/functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/functions.sh b/scripts/functions.sh index 7aa2960..ccd26fd 100644 --- a/scripts/functions.sh +++ b/scripts/functions.sh @@ -246,8 +246,8 @@ function disk_create_partition() { || die "Could not resolve new device with id=$new_id" for i in {1..10}; do [[ -e "$new_device" ]] && break - [[ "$i" -eq 1 ]] && printf "Waiting for partition ($new_device) to appear..." - printf " $((10 - i + 1))" + [[ "$i" -eq 1 ]] && printf "Waiting for partition (%s) to appear..." "$new_device" + printf " %s" "$((10 - i + 1))" sleep 1 [[ "$i" -eq 10 ]] && echo done