From 4e16dc50b251ecbc4dd35360a1adf00e80a2a09b Mon Sep 17 00:00:00 2001 From: fatalerrors Date: Wed, 1 Dec 2021 10:52:30 +0100 Subject: [PATCH] display.sh: fixed separator implementation --- lib/display.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/display.sh b/lib/display.sh index 8a9104b..d1f5c32 100644 --- a/lib/display.sh +++ b/lib/display.sh @@ -130,10 +130,12 @@ separator() { echo -ne "$BYellow" 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 "-" done echo -e "$DEFAULTCOL" + unset i length } export -f separator