From 54fd8d717b64bb4270576864558b19ea9d036b9d Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sun, 17 Oct 2021 03:00:46 -0400 Subject: [PATCH] separator command uses terminal size now if there is no specified size. --- scripts/core/functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.34.1