List CLI options explicitly
authorSiraaj Khandkar <siraaj@khandkar.net>
Mon, 2 Nov 2020 10:48:59 +0000 (05:48 -0500)
committerSiraaj Khandkar <siraaj@khandkar.net>
Mon, 2 Nov 2020 10:48:59 +0000 (05:48 -0500)
home/lib/login_functions.sh

index 6646365..293e7b4 100644 (file)
@@ -375,10 +375,13 @@ run() {
 bar_gauge() {
     awk "$@" '
         BEGIN {
+            # CLI options
             ch_left  = ch_left  ? ch_left  : "["
             ch_right = ch_right ? ch_right : "]"
             ch_blank = ch_blank ? ch_blank : "-"
             ch_used  = ch_used  ? ch_used  : "|"
+            num      = num      ? 1        : 0
+            pct      = pct      ? 1        : 0
         }
 
         {
This page took 0.029854 seconds and 4 git commands to generate.