Fix bug
This commit is contained in:
parent
4989bfbab3
commit
00768e0e4a
|
@ -338,7 +338,7 @@ calcWidthAndRun() {
|
||||||
|
|
||||||
calcHeightAndRun() {
|
calcHeightAndRun() {
|
||||||
str=$(echo "$@" | grep -oP '(?<=").*?(?=")')
|
str=$(echo "$@" | grep -oP '(?<=").*?(?=")')
|
||||||
newlines=$(printf '%s' "$str" | grep -c $'\n')
|
newlines=$(printf "$str" | grep -c $'\n')
|
||||||
chars=$(echo "$str" | wc -c)
|
chars=$(echo "$str" | wc -c)
|
||||||
height=$(echo "$chars" "$newlines" | awk '{
|
height=$(echo "$chars" "$newlines" | awk '{
|
||||||
x = (($1 - $2 + ($2 * 60)) / 60)
|
x = (($1 - $2 + ($2 * 60)) / 60)
|
||||||
|
|
Loading…
Reference in New Issue