From de179d2b65640e3482e335b93dcb0e10524ee104 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:41:56 -0400 Subject: [PATCH] Fix bad variable name --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 2e6a201..4df8666 100755 --- a/install.sh +++ b/install.sh @@ -448,7 +448,7 @@ blockcheck() { while [[ ${remainder} -gt 0 && ${exponent} -gt 0 ]]; do exponent=$(( ${exponent} - 1 )) size=$(( 2**9 * 2 ** ${exponent} )) - count=$(( ${blockdev_size_bytes} / ${blocksize} )) + count=$(( ${blockdev_size_bytes} / ${size} )) remainder=$(( ${blockdev_size_bytes} - ${count} * ${size} )) done if [[ ${remainder} -gt 0 ]]; then