Fix warnings/info/style
This commit is contained in:
parent
84b8707810
commit
96727415b9
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue