From: Chris Koeritz Date: Sun, 17 Oct 2021 07:00:46 +0000 (-0400) Subject: separator command uses terminal size now X-Git-Tag: 2.140.134~4^2~37 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=54fd8d717b64bb4270576864558b19ea9d036b9d;p=feisty_meow.git separator command uses terminal size now if there is no specified size. --- diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index fa5df863..c1a14c0e 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -768,11 +768,11 @@ return 0 { count=$1; shift if [ -z "$count" ]; then - count=79 + count=$(($COLUMNS - 1)) fi echo local i - for ((i=0; i < $count - 1; i++)); do + for ((i=0; i < $count; i++)); do echo -n "=" done echo