From 82c2459fdd391805d3e55505dafb36af1a53fc46 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Mon, 2 Nov 2020 05:24:06 -0500 Subject: [PATCH] Use full width available --- home/lib/login_functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/lib/login_functions.sh b/home/lib/login_functions.sh index a161d4b..68d99a2 100644 --- a/home/lib/login_functions.sh +++ b/home/lib/login_functions.sh @@ -588,6 +588,6 @@ ssh_invalid_attempts_from() { /var/log/auth.log \ /var/log/auth.log.1 \ | sort -n -k 1 \ - | bar_gauge -v width=80 -v num=1 -v ch_right=' ' -v ch_left=' ' -v ch_blank=' ' \ + | bar_gauge -v width=$(stty size | awk '{print $2}') -v num=1 -v ch_right=' ' -v ch_left=' ' -v ch_blank=' ' \ | column -t } -- 2.20.1