From 06a8caf098a3a8c2eebf35a6f8b2b7a16e6c1f5a Mon Sep 17 00:00:00 2001 From: Edouard Lopez Date: Tue, 5 Feb 2019 23:32:11 +0100 Subject: [PATCH] reduce spaces reserved to percentage label to 6 characters --- progress-bar.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/progress-bar.sh b/progress-bar.sh index eba28d1..fb4c75e 100755 --- a/progress-bar.sh +++ b/progress-bar.sh @@ -9,7 +9,7 @@ progress-bar() { local fit_to_screen local space_reserved - space_reserved=10 # reserved width for the percentage value + space_reserved=6 # reserved width for the percentage value duration=${1} columns=$(tput cols) space_available=$(( columns-space_reserved ))