Better fix that doesn't mess with spacing

This commit is contained in:
Archie Hilton (thytom) 2019-11-04 09:28:34 +00:00
parent aee5c3515f
commit c9a316f5ea

4
bar.sh
View file

@ -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()