From 56d0f90baf606277b6127bd2be147c100d6ddaf9 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 6 Dec 2021 14:56:32 -0500 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