From 96727415b91ea9bfe989ea9837835099baa86407 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Sat, 29 Jan 2022 12:36:10 -0300 Subject: [PATCH] Fix warnings/info/style --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index f36b9ee..1bd9be4 100755 --- a/install.sh +++ b/install.sh @@ -362,13 +362,13 @@ calcWidth() { fi ((count++)) done - [ $option -ge $count ] && count=option + [ $option -ge "$count" ] && count=option echo $((count+3)) } calcHeight() { - newlines=$(printf "$1" | grep -c $'\n') - chars=$(echo "$1" | wc -c) + newlines=$(echo -ne | grep -c $'\n') + chars=${#1} height=$(echo "$chars" "$newlines" | awk '{ x = (($1 - $2 + ($2 * 60)) / 60) printf "%d", (x == int(x)) ? x : int(x) + 1