no spaces between icons and content

This commit is contained in:
Luke Smith
2020-05-25 17:06:24 -04:00
parent 99a7d1dd98
commit c075127aae
10 changed files with 12 additions and 15 deletions

View File

@@ -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 ;}