mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-22 11:39:53 +00:00
CPU (Cores): Strip spaces
This commit is contained in:
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
Block a user