From c075127aaee99d072fdb887c0986fd6dc5c8c533 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Mon, 25 May 2020 17:06:24 -0400 Subject: no spaces between icons and content --- .local/bin/statusbar/crypto | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.local/bin/statusbar/crypto') diff --git a/.local/bin/statusbar/crypto b/.local/bin/statusbar/crypto index 2e37f13..bb19fc9 100755 --- a/.local/bin/statusbar/crypto +++ b/.local/bin/statusbar/crypto @@ -28,8 +28,8 @@ printprices() { # Print/format all prices for x in "$dir"/*; do [ -f "$x" ] || break info="$(cut -d';' -f-2 --output-delimiter=' ' "$x")" - printf "%s $%0.2f " $info - done | sed "s/ $/\n/" + printf "%s$%0.2f " $info + done | sed 's/ $/\n/' } [ ! -d "$dir" ] && mkdir -p "$dir" && { getprices; exit ;} -- cgit v1.3.1