mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +00:00
CPU: Strip spaces from speed output
This commit is contained in:
3
neofetch
3
neofetch
@@ -1038,8 +1038,9 @@ get_cpu() {
|
|||||||
cpu="${cpu//Chip Revision*}"
|
cpu="${cpu//Chip Revision*}"
|
||||||
cpu="${cpu//Technologies, Inc}"
|
cpu="${cpu//Technologies, Inc}"
|
||||||
|
|
||||||
# Trim spaces from core output
|
# Trim spaces from core and speed output
|
||||||
cores="${cores//[[:space:]]}"
|
cores="${cores//[[:space:]]}"
|
||||||
|
speed="${speed//[[:space:]]}"
|
||||||
|
|
||||||
# Remove CPU brand from the output.
|
# Remove CPU brand from the output.
|
||||||
if [[ "$cpu_brand" == "off" ]]; then
|
if [[ "$cpu_brand" == "off" ]]; then
|
||||||
|
Reference in New Issue
Block a user