ref: a8a49f3f42e5237fd85bf0ef234fb3c533ad3d26
parent: 951de9937025f01e3c486cf48f8b32c0d4a37ce2
author: Halfwit <michaelmisch1985@gmail.com>
date: Fri Sep 7 19:24:34 PDT 2018
Fix statusbar wonkiness Signed-off-by: Halfwit <michaelmisch1985@gmail.com>
--- a/gitbar
+++ b/gitbar
@@ -15,8 +15,9 @@
append "$(wc -l < "$XDG_DATA_DIR/commits")" "⇄"
}
-tmp="$(stringify)"
+# It's messy, but it removes newlines from the three file outputs
+tmp="$(stringify | tr -d '\n')"
case "_$tmp" in
- _) echo "" > "$GITBAR" ;;
+ _) echo "" > "$GITBAR" ;;
*) printf '[%s]\n' "$tmp" > "$GITBAR" ;;
esac