display.sh: fixed separator implementation

This commit is contained in:
2021-12-01 10:52:30 +01:00
parent c978eb1ef8
commit 4e16dc50b2

View File

@@ -130,10 +130,12 @@ separator()
{ {
echo -ne "$BYellow" echo -ne "$BYellow"
local i=0 local i=0
for i in {1..$(( $(tput cols) - 1 ))}; do declare -li length=$(( $(tput cols) - 1 ))
for i in $(seq 1 $length); do
echo -n "-" echo -n "-"
done done
echo -e "$DEFAULTCOL" echo -e "$DEFAULTCOL"
unset i length
} }
export -f separator export -f separator