CPU (Cores): Strip spaces
This commit is contained in:
parent
8a3981bf92
commit
d5e35803d6
1 changed files with 3 additions and 0 deletions
3
neofetch
3
neofetch
|
@ -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}) @}"
|
||||
|
|
Loading…
Reference in a new issue