Fix warnings/info/style

This commit is contained in:
Santiago Lo Coco 2022-01-29 12:36:10 -03:00
parent 84b8707810
commit 96727415b9
1 changed files with 3 additions and 3 deletions

View File

@ -362,13 +362,13 @@ calcWidth() {
fi fi
((count++)) ((count++))
done done
[ $option -ge $count ] && count=option [ $option -ge "$count" ] && count=option
echo $((count+3)) echo $((count+3))
} }
calcHeight() { calcHeight() {
newlines=$(printf "$1" | grep -c $'\n') newlines=$(echo -ne | grep -c $'\n')
chars=$(echo "$1" | wc -c) chars=${#1}
height=$(echo "$chars" "$newlines" | awk '{ height=$(echo "$chars" "$newlines" | awk '{
x = (($1 - $2 + ($2 * 60)) / 60) x = (($1 - $2 + ($2 * 60)) / 60)
printf "%d", (x == int(x)) ? x : int(x) + 1 printf "%d", (x == int(x)) ? x : int(x) + 1