From c0a6886dcc1947f7dbe67540e77df00b5c671c9c Mon Sep 17 00:00:00 2001 From: Andrew Titmuss Date: Mon, 14 Mar 2016 21:33:14 +1100 Subject: [PATCH] changed from echo to printf --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index bd5e4b78..ce1e2dcb 100755 --- a/neofetch +++ b/neofetch @@ -1508,12 +1508,12 @@ getdisk () { disk_total=${disk_total/G} if [[ "$disk_used" == *"T" ]]; then - disk_used=$(echo "${disk_used/T} * 1000" | bc) + disk_used=$(printf "%s\n" "${disk_used/T} * 1000" | bc) disk_used=${disk_used/'.'*} fi if [[ "$disk_total" == *"T" ]]; then - disk_total=$(echo "${disk_total/T} * 1000" | bc) + disk_total=$(printf "%s\n" "${disk_total/T} * 1000" | bc) disk_total=${disk_total/'.'*} fi