From f865d28410e58dfdbc9dc5b0b18b8a18ce2e8cd2 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Mon, 2 Nov 2020 06:03:49 -0500 Subject: [PATCH] Add missing gauge default: width --- home/lib/login_functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/lib/login_functions.sh b/home/lib/login_functions.sh index 293e7b4..7635e5d 100644 --- a/home/lib/login_functions.sh +++ b/home/lib/login_functions.sh @@ -376,6 +376,7 @@ bar_gauge() { awk "$@" ' BEGIN { # CLI options + width = width ? width : 80 ch_left = ch_left ? ch_left : "[" ch_right = ch_right ? ch_right : "]" ch_blank = ch_blank ? ch_blank : "-" @@ -446,7 +447,6 @@ indent() { } motd() { - local -r bar_width='60' local -r indent_unit=' ' uname -srvmo @@ -467,7 +467,7 @@ motd() { df ~ | awk 'NR == 2 {print $3, $3 + $4, "disk"}' motd_batt ) \ - | bar_gauge -v width="$bar_width" -v pct=1 \ + | bar_gauge -v width=60 -v pct=1 \ | column -t \ | indent "$indent_unit" -- 2.20.1