CPU (Cores): Strip spaces

This commit is contained in:
Muhammad Herdiansyah 2017-01-09 18:50:28 +07:00
parent 8a3981bf92
commit d5e35803d6

View file

@ -971,6 +971,9 @@ get_cpu() {
cpu="${cpu//, altivec supported}"
cpu="${cpu//FPU*}"
# Trim spaces from core output
cores="${cores//[[:space:]]}"
# Add CPU cores to the output.
[[ "$cpu_cores" != "off" && "$cores" ]] && \
cpu="${cpu/@/(${cores}) @}"