Commit d5e35803 authored by Muhammad Herdiansyah's avatar Muhammad Herdiansyah

CPU (Cores): Strip spaces

parent 8a3981bf
......@@ -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}) @}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment