diff options
author | Archie Hilton (thytom) <archie.hilton1@gmail.com> | 2019-11-04 09:28:34 +0000 |
---|---|---|
committer | Archie Hilton (thytom) <archie.hilton1@gmail.com> | 2019-11-04 09:28:34 +0000 |
commit | c9a316f5ea8f5d69298f222b3803351cd3bb9036 (patch) | |
tree | 24d76afc3f7eabfba3195a31aa666d8944ad669d | |
parent | aee5c3515f59880459f8dc65cb24d433c2f19319 (diff) |
Better fix that doesn't mess with spacing
-rwxr-xr-x | bar.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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() |