changed from echo to printf
This commit is contained in:
parent
34f145b7b1
commit
c0a6886dcc
4
neofetch
4
neofetch
|
@ -1508,12 +1508,12 @@ getdisk () {
|
||||||
disk_total=${disk_total/G}
|
disk_total=${disk_total/G}
|
||||||
|
|
||||||
if [[ "$disk_used" == *"T" ]]; then
|
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/'.'*}
|
disk_used=${disk_used/'.'*}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$disk_total" == *"T" ]]; then
|
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/'.'*}
|
disk_total=${disk_total/'.'*}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Reference in New Issue