CPU (Cores): Strip spaces
This commit is contained in:
parent
8a3981bf92
commit
d5e35803d6
3
neofetch
3
neofetch
|
@ -971,6 +971,9 @@ get_cpu() {
|
||||||
cpu="${cpu//, altivec supported}"
|
cpu="${cpu//, altivec supported}"
|
||||||
cpu="${cpu//FPU*}"
|
cpu="${cpu//FPU*}"
|
||||||
|
|
||||||
|
# Trim spaces from core output
|
||||||
|
cores="${cores//[[:space:]]}"
|
||||||
|
|
||||||
# Add CPU cores to the output.
|
# Add CPU cores to the output.
|
||||||
[[ "$cpu_cores" != "off" && "$cores" ]] && \
|
[[ "$cpu_cores" != "off" && "$cores" ]] && \
|
||||||
cpu="${cpu/@/(${cores}) @}"
|
cpu="${cpu/@/(${cores}) @}"
|
||||||
|
|
Reference in New Issue