From c9a316f5ea8f5d69298f222b3803351cd3bb9036 Mon Sep 17 00:00:00 2001 From: "Archie Hilton (thytom)" Date: Mon, 4 Nov 2019 09:28:34 +0000 Subject: [PATCH] Better fix that doesn't mess with spacing --- bar.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bar.sh b/bar.sh index 3595d6c..925615a 100755 --- a/bar.sh +++ b/bar.sh @@ -32,8 +32,8 @@ get_bar() fi done # Uncomment to remove last separator - bar="$(echo $bar | sed 's/.$//g')" - echo "$LEFT_PADDING$bar$RIGHT_PADDING" + # bar="$(echo "$bar" | sed 's/.$//g')" + echo "$LEFT_PADDING${bar::-2}$RIGHT_PADDING" } run_module()