aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArchie Hilton (thytom) <archie.hilton1@gmail.com>2019-11-04 09:28:34 +0000
committerArchie Hilton (thytom) <archie.hilton1@gmail.com>2019-11-04 09:28:34 +0000
commitc9a316f5ea8f5d69298f222b3803351cd3bb9036 (patch)
tree24d76afc3f7eabfba3195a31aa666d8944ad669d
parentaee5c3515f59880459f8dc65cb24d433c2f19319 (diff)
Better fix that doesn't mess with spacing
-rwxr-xr-xbar.sh4
1 files 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()