From 2d8453ed2183fa0b2ee5189ed5c62077057963c4 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Sat, 29 Jan 2022 12:37:03 -0300 Subject: [PATCH] Remove redundant variable --- install.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 1bd9be4..ebf56e7 100755 --- a/install.sh +++ b/install.sh @@ -368,8 +368,7 @@ calcWidth() { calcHeight() { newlines=$(echo -ne | grep -c $'\n') - chars=${#1} - height=$(echo "$chars" "$newlines" | awk '{ + height=$(echo "${#1}" "$newlines" | awk '{ x = (($1 - $2 + ($2 * 60)) / 60) printf "%d", (x == int(x)) ? x : int(x) + 1 }')