From 00768e0e4a555461968595c9c14c43dcff0f3387 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Thu, 6 Jan 2022 13:25:01 -0300 Subject: [PATCH] Fix bug --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 898089b..404f5f5 100755 --- a/install.sh +++ b/install.sh @@ -338,7 +338,7 @@ calcWidthAndRun() { calcHeightAndRun() { str=$(echo "$@" | grep -oP '(?<=").*?(?=")') - newlines=$(printf '%s' "$str" | grep -c $'\n') + newlines=$(printf "$str" | grep -c $'\n') chars=$(echo "$str" | wc -c) height=$(echo "$chars" "$newlines" | awk '{ x = (($1 - $2 + ($2 * 60)) / 60)