Remove redundant variable

This commit is contained in:
Santiago Lo Coco 2022-01-29 12:37:03 -03:00
parent 96727415b9
commit 2d8453ed21
1 changed files with 1 additions and 2 deletions

View File

@ -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
}')